forked from alex-ac/github-action-ssh-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
36 lines (36 loc) · 1.09 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
name: SSH-Compose
description: SSH into host and deploy repository with Docker-Compose
inputs:
ssh_private_key:
description: Private SSH key used for logging into remote system.
required: true
ssh_host:
description: Remote host name.
required: true
ssh_port:
description: Remote SSH port.
default: 22
required: true
ssh_user:
description: Remote user name.
required: true
docker_compose_prefix:
description: Prefix for docker-compose containers.
required: true
docker_compose_filename:
description: Docker compose file to use
default: docker-compose.yaml
use_stack:
description: Use docker stack instead of docker compose ("true" or "false").
default: 'false'
runs:
using: docker
image: Dockerfile
env:
SSH_USER: ${{ inputs.ssh_user }}
SSH_HOST: ${{ inputs.ssh_host }}
SSH_PORT: ${{ inputs.ssh_port }}
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
DOCKER_COMPOSE_FILENAME: ${{ inputs.docker_compose_filename }}
DOCKER_COMPOSE_PREFIX: ${{ inputs.docker_compose_prefix }}
USE_DOCKER_STACK: ${{ inputs.use_stack }}