2024-11-03 13:27:34 +01:00
2024-07-01 14:16:35 +02:00
2024-11-03 14:25:46 +01:00
2024-07-01 12:15:54 +02:00
2024-07-11 11:10:33 +02:00

gitea-action-git-crypt-ssh-deploy

This action decrypts a repository that has been encrypted with git-crypt, and then deploys a docker-compose-based project.

Inputs

  • ssh_private_key - Private SSH key. Please keep this secure!
  • git_crypt_key - Base64 encoded git-crypt key, see below. Must also be kept secure!
  • ssh_host - Remote host to ssh to, where the project will be deployed.
  • ssh_port - SSH port for the remote host. Defaults to 22.
  • ssh_user - Username to use when connecting to the remote host.
  • docker_compose_project - Name of the docker compose project. This will be used as the prefix by docker.
  • docker_compose_filename - The filename of the compose file. Defaults to docker-compose.yml
  • action - defaults to up. With down, docker compose down will be run.
  • swarm_mode - if true, the project will be deployed as a stack.

Getting the git crypt key

The key can be extracted from an unlocked repository with the following command:

git-crypt export-key - | base64 

Acknowledgement

This action is a combination of these two existing github actions:

Description
Action to deploy a git-crypt encrypted docker compose project
Readme 43 KiB
v1.0.0 Latest
2024-07-01 10:22:10 +00:00
Languages
Shell 96.8%
Dockerfile 3.2%