-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
45 lines (45 loc) · 1.28 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Deploy to platform.sh'
description: 'Set up platformsh CLI and deploy'
inputs:
project-id:
description: 'Project ID on platform.sh'
required: true
cli-token:
description: 'Token for platform.sh CLI'
required: true
ssh-private-key:
description: 'SSH key to access the git repository on platform.sh'
required: false
php-version:
description: 'PHP version to setup for the CLI'
required: true
default: '8.0'
force-push:
description: 'Force push to Platform.sh'
required: false
environment-name:
description: 'Name of the platform.sh instance'
required: false
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
- uses: adam7/[email protected]
with:
token: ${{ inputs.cli-token }}
- run: ${{ github.action_path }}/deploy.sh
shell: bash
env:
SSH_PRIVATE_KEY: ${{ inputs.ssh-private-key }}
PLATFORM_PROJECT_ID: ${{ inputs.project-id }}
PLATFORMSH_CLI_TOKEN: ${{ inputs.cli-token }}
FORCE_PUSH: ${{ inputs.force-push }}
ENVIRONMENT_NAME: ${{ inputs.environment-name }}
branding:
icon: upload-cloud
color: orange