forked from matiasnu/github-action-ssh-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
46 lines (46 loc) · 1.5 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
name: ssh-docker-compose
description: SSH into host and deploy repository with Docker-Compose
branding:
icon: cloud
color: blue
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'
docker_compose_down:
description: Execute docker-compose-down ("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 }}
DOCKER_COMPOSE_DOWN: ${{ inputs.docker_compose_down }}
CONTAINER_REGISTRY_USERNAME: ${{ inputs.container_registry_username }}
CONTAINER_REGISTRY_TOKEN: ${{ inputs.container_registry_token }}
CONTAINER_REGISTRY: ${{ inputs.container_registry }}