52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Git-Crypt-SSH-Deploy
|
|
description: Action to unlock git-crypt repository and deploy docker compose project.
|
|
author: "Allan Eising"
|
|
branding:
|
|
icon: "unlock"
|
|
color: "green"
|
|
|
|
inputs:
|
|
ssh_private_key:
|
|
description: "Private SSH key used for logging into remote system."
|
|
required: true
|
|
git_crypt_key:
|
|
description: "Base64 encoded key to decrypt repository."
|
|
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 }}
|
|
GIT_CRYPT_KEY: ${{ inputs.git_crypt_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 }}
|