-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yaml
63 lines (60 loc) · 2.47 KB
/
action.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Armory Continuous Deployment-as-a-Service'
description: 'CD-as-a-Service enables declarative continuous deployment, with a GitOps experience and advanced deployment strategies. '
inputs:
path-to-file:
description: 'Path to the configuration YAML file used to configure your deployment'
required: true
applicationName:
description: 'extra args to the deployment start command'
required: false
addContext:
description: 'extra context params to the deployment start command'
required: false
withScmFile:
description: 'Path to the YAML file containing the SCM values associated with the deployment'
required: false
clientId:
description: 'ClientId for Armory Cloud'
required: true
clientSecret:
description: 'ClientSecret for Armory Cloud'
required: true
audience:
description: 'Intended audience of requests that will use your Armory Cloud authentication token. Is deployHostUrl by default'
default: 'https://api.cloud.armory.io'
required: false
tokenIssuerUrl:
description: 'Armory Cloud authentication provider url'
default: 'https://auth.cloud.armory.io/oauth'
required: false
deployHostUrl:
description: 'Location of the Armory Cloud API which will handle your deployment'
default: 'api.cloud.armory.io'
required: false
waitForDeployment:
description: 'Boolean flag (true|false) determining if the action should wait for the deployment to complete. "false" by default.'
default: 'false'
required: false
outputs:
DEPLOYMENT_ID:
description: 'Unique deployment identifier - can be used to query the status of the deployment in cloud-console'
LINK:
description: 'Link to the cloud-console, where you can check the state of the workflow and advance it to the next stages'
RUN_RESULT:
description: "If deployment was triggered with 'waitForDeployment=true' flag, this variable will contain final status of the deployment - one of [SUCCEEDED, CANCELLED, FAILED, UNKNOWN (error)]"
runs:
using: 'docker'
image: 'Dockerfile'
env:
ARMORY_CLIENTID: ${{ inputs.clientId }}
ARMORY_CLIENTSECRET: ${{ inputs.clientSecret }}
ARMORY_AUDIENCE: ${{ inputs.audience }}
ARMORY_TOKENISSUERURL: ${{ inputs.tokenIssuerUrl }}
ARMORY_DEPLOYHOSTURL: ${{ inputs.deployHostUrl }}
ARMORY_DEPLOYORIGIN: 'github'
args:
- ${{ inputs.path-to-file }}
- ${{ inputs.applicationName }}
- ${{ inputs.addContext }}
- ${{ inputs.withScmFile }}
- ${{ inputs.waitForDeployment }}