-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
55 lines (55 loc) · 1.75 KB
/
action.yml
File metadata and controls
55 lines (55 loc) · 1.75 KB
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
name: zCloud Deploy
author: zCloud <[email protected]>
description: GitHub action to deploy content on zCloud platform.
branding:
icon: upload-cloud
color: green
inputs:
user-token:
description: 'Token to authenticate the user'
required: false
env-token:
description: 'Token to authenticate the app environment'
required: false
env:
description: 'Environment name to create or update'
required: true
dir:
description: 'Directory usage as source code to send to deploy (Optional, default value is current dir)'
required: false
default: ""
image:
description: 'Image name to deploy'
required: false
default: ""
app:
description: 'Name of the app in which the environment will be created or updated (requires usage together with the --create argument)'
required: false
default: ""
copy-env-vars-from:
description: 'Name of the environment from which the env vars will be copied to the new environment (requires usage together with the --create argument)'
required: false
default: ""
api-cli-uri:
description: 'Custom API URL for full private region deployments'
required: false
default: ""
cli-extra-args:
description: 'CLI extra arguments.'
required: false
runs:
using: 'docker'
image: docker://zcloudws/zcloud-cli:v1.0.28
env:
ZCLOUD_USER_TOKEN: ${{ inputs.user-token }}
ZCLOUD_ENV_TOKEN: ${{ inputs.env-token }}
ZCLOUD_ENV_NAME: ${{ inputs.env }}
ZCLOUD_SRC_DIR: ${{ inputs.dir }}
ZCLOUD_IMAGE: ${{ inputs.image }}
ZCLOUD_APP_SLUG: ${{ inputs.app }}
ZCLOUD_COPY_ENV_VARS_FROM: ${{ inputs.copy-env-vars-from }}
ZCLOUD_API_CLI_URI: ${{ inputs.api-cli-uri }}
entrypoint: sh
args:
- -c
- 'zcloud deploy ${{ inputs.cli-extra-args }}'