-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
71 lines (70 loc) · 2.1 KB
/
action.yml
File metadata and controls
71 lines (70 loc) · 2.1 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: "Docker Deploy Action via SSH"
description: "Deploy your app with Docker Compose over SSH, using known_hosts for verification"
branding:
icon: "server"
color: "blue"
inputs:
ssh_host:
description: "SSH Host"
required: true
ssh_user:
description: "SSH User"
required: true
ssh_private_key:
description: "SSH Private Key"
required: true
ssh_port:
description: "SSH Port"
required: false
default: "22"
ssh_known_hosts:
description: "Contents of known_hosts file to verify server identity"
required: false
project_path:
description: "Remote path to deploy to"
required: true
pre_command:
description: "Command to run on remote before docker-compose"
required: false
default: ""
post_command:
description: "Command to run on remote after docker-compose"
required: false
default: ""
deploy_file:
description: "Path of the docker-compose file relative to project root"
required: false
default: "docker-compose.yml"
extra_files:
description: "Comma-separated list of extra files/folders to upload"
required: false
default: ""
compose_pull:
description: "Pull images before starting (true/false)"
required: false
default: "true"
compose_build:
description: "Build images before starting (true/false)"
required: false
default: "false"
compose_args:
description: "Extra arguments passed directly to 'docker compose up'"
required: false
default: "--remove-orphans"
runs:
using: "docker"
image: "Dockerfile"
env:
SSH_HOST: ${{ inputs.ssh_host }}
SSH_USER: ${{ inputs.ssh_user }}
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
SSH_PORT: ${{ inputs.ssh_port }}
SSH_KNOWN_HOSTS: ${{ inputs.ssh_known_hosts }}
PROJECT_PATH: ${{ inputs.project_path }}
PRE_COMMAND: ${{ inputs.pre_command }}
POST_COMMAND: ${{ inputs.post_command }}
DEPLOY_FILE: ${{ inputs.deploy_file }}
EXTRA_FILES: ${{ inputs.extra_files }}
COMPOSE_PULL: ${{ inputs.compose_pull }}
COMPOSE_BUILD: ${{ inputs.compose_build }}
COMPOSE_ARGS: ${{ inputs.compose_args }}