-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
72 lines (71 loc) · 2.04 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: 'Docker Stack Deploy Action'
description: 'Deploy a Docker stack on a Docker Swarm'
author: 'kitconcept GmbH'
branding:
icon: 'truck'
color: 'red'
inputs:
registry:
description: 'Container registry to use'
required: false
default: ""
username:
description: 'Container registry username'
required: false
default: ""
password:
description: 'Container registry password'
required: false
default: ""
remote_host:
description: 'Host running Docker Swarm'
required: true
remote_port:
description: 'SSH port on the host running Docker Swarm'
required: false
default: "22"
remote_user:
description: 'User to connect to remote host'
required: true
remote_private_key:
description: 'Private key used for ssh authentication'
required: true
deploy_timeout:
description: "Timeout for the deploy check (in seconds)"
required: false
default: "600"
stack_file:
description: "Path to the stack file to be used for deploy"
required: true
stack_name:
description: "Name of the stack to be deployed"
required: true
stack_param:
description: "Additional stack parameter value"
required: false
default: ""
env_file:
description: "Additional environment variables in the format VAR_01=VALUE\nVAR_02=VALUE"
required: false
default: ""
debug:
description: "Debug information"
required: false
default: "0"
runs:
using: 'docker'
image: 'docker://ghcr.io/kitconcept/docker-stack-deploy:latest'
env:
REGISTRY: ${{ inputs.registry }}
USERNAME: ${{ inputs.username }}
PASSWORD: ${{ inputs.password }}
REMOTE_HOST: ${{ inputs.remote_host }}
REMOTE_PORT: ${{ inputs.remote_port }}
REMOTE_USER: ${{ inputs.remote_user }}
REMOTE_PRIVATE_KEY: ${{ inputs.remote_private_key }}
DEPLOY_TIMEOUT: ${{ inputs.deploy_timeout }}
STACK_FILE: ${{ inputs.stack_file }}
STACK_NAME: ${{ inputs.stack_name }}
STACK_PARAM: ${{ inputs.stack_param }}
ENV_FILE: ${{ inputs.env_file }}
DEBUG: ${{ inputs.debug }}