49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Docker-SSH-Deploy
|
|
description: Action to deploy docker projects over ssh.
|
|
author: "Allan Eising"
|
|
branding:
|
|
icon: "unlock"
|
|
color: "blue"
|
|
|
|
inputs:
|
|
ssh_private_key:
|
|
description: "Private SSH key used for logging into remote system."
|
|
required: true
|
|
ssh_host:
|
|
description: Host to deploy to.
|
|
required: true
|
|
ssh_port:
|
|
description: SSH Port
|
|
default: 22
|
|
required: true
|
|
ssh_user:
|
|
description: Remote user name.
|
|
required: true
|
|
swarm_mode:
|
|
description: Use swarm mode instead of docker compose
|
|
default: "false"
|
|
required: true
|
|
action:
|
|
description: Action, i.e., "up" or "down"
|
|
default: "up"
|
|
required: true
|
|
docker_compose_project:
|
|
description: Compose project name
|
|
required: true
|
|
docker_compose_filename:
|
|
description: Compose file to use
|
|
default: docker-compose.yml
|
|
|
|
runs:
|
|
using: docker
|
|
image: Dockerfile
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
|
|
SSH_HOST: ${{ inputs.ssh_host }}
|
|
SSH_PORT: ${{ inputs.ssh_port }}
|
|
SSH_USER: ${{ inputs.ssh_user }}
|
|
DOCKER_COMPOSE_PROJECT: ${{ inputs.docker_compose_project }}
|
|
DOCKER_COMPOSE_FILENAME: ${{ inputs.docker_compose_filename }}
|
|
DEPLOY_ACTION: ${{ inputs.action }}
|
|
SWARM_MODE: ${{ inputs.swarm_mode }}
|