forked from Eisingcloud/gitea-action-git-crypt-ssh-deploy
Initial commit
This commit is contained in:
45
action.yml
Normal file
45
action.yml
Normal file
@ -0,0 +1,45 @@
|
||||
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
|
||||
docker_compose_project:
|
||||
description: Compose project name
|
||||
required: true
|
||||
docker_compose_filename:
|
||||
description: Compose file to use
|
||||
default: docker-compose.yml
|
||||
docker_compose_down:
|
||||
description: Undeploy project instead of creating it ("true" or "false").
|
||||
default: "false"
|
||||
|
||||
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_PRJECT: ${{ inputs.docker_compose_project }}
|
||||
DOCKER_COMPOSE_FILENAME: ${{ inputs.docker_compose_filename }}
|
||||
DOCKER_COMPOSE_DOWN: ${{ inputs.docker_compose_down }}
|
||||
Reference in New Issue
Block a user