-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
61 lines (58 loc) · 1.95 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
name: Docker Remote Deployment
description: A GitHub Action that supports docker-compose and Docker Swarm deployments
inputs:
remote_docker_host:
description: Remote Docker host ie (user@host).
required: true
remote_docker_port:
description: Remote Docker ssh port ie (22).
required: false
default: '22'
ssh_public_key:
description: Remote Docker SSH public key eg (~/.ssh/rsa_id.pub).
required: true
ssh_private_key:
description: SSH private key used to connect to the docker host eg (~/.ssh/rsa_id).
required: true
args:
description: Deployment command args.
required: true
deployment_mode:
description: Deployment mode either docker-swarm or docker-compose. Default is docker-compose.
required: false
copy_stack_file:
description: Copy stack file to remote server and deploy from the server. Default is false.
required: false
deploy_path:
description: The path where the stack files will be copied to. Default ~/docker-deployment.
required: false
stack_file_name:
description: Docker stack file used. Default is docker-compose.yml.
required: false
keep_files:
description: Number of the files to be kept on the server. Default is 3.
required: false
docker_prune:
description: A boolean input to trigger docker prune command. Default is false.
required: false
pre_deployment_command_args:
description: The args for the pre deploument command.
required: false
pull_images_first:
description: Pull docker images before deploying. Default is false.
required: false
docker_registry_username:
description: The docker registry username.
required: false
docker_registry_password:
description: The docker registry password.
required: false
docker_registry_uri:
description: The docker registry URI. Default is https://registry.hub.docker.com.
required: false
runs:
using: docker
image: Dockerfile
branding:
icon: send
color: green