-
Notifications
You must be signed in to change notification settings - Fork 373
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (36 loc) · 982 Bytes
/
action.yml
File metadata and controls
40 lines (36 loc) · 982 Bytes
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
# Control Plane GitHub Action
name: Deploy to Control Plane
description: 'Deploys an application to Control Plane'
inputs:
app_name:
description: 'Name of the application'
required: true
org:
description: 'Organization name'
required: true
wait_timeout:
description: 'Timeout in seconds for waiting for workloads to be ready'
required: false
default: '900'
pr_number:
description: 'Pull Request number'
required: true
outputs:
review_app_url:
description: 'URL of the deployed application'
value: ${{ steps.deploy.outputs.review_app_url }}
runs:
using: "composite"
steps:
- name: Deploy to Control Plane
id: deploy
shell: bash
env:
APP_NAME: ${{ inputs.app_name }}
CPLN_ORG: ${{ inputs.org }}
WAIT_TIMEOUT: ${{ inputs.wait_timeout }}
run: |
# Run the deployment script
if ! ${{ github.action_path }}/scripts/deploy.sh; then
exit 1
fi