-
Notifications
You must be signed in to change notification settings - Fork 75
/
action.yml
53 lines (50 loc) · 1.61 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
name: Docker Deployment
author: Al-waleed Shihadeh <[email protected]>
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
required: true
ssh_private_key:
description: SSH private key used to connect to the docker host
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.yaml
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.
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.
required: false
runs:
using: docker
image: Dockerfile
branding:
icon: send
color: green