neunerlei/Deploy Docker to Compose Host
Github action, designed to deploy built docker-images onto a prepared host server through SSH.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| ssh-host | The SSH host to deploy to. | yes | — |
| ssh-user | The SSH user to connect to on the host | — | deployment |
| ssh-port | The SSH port on the host to connect to | — | 22 |
| ssh-fingerprint | The Fingerprint of the SSH server should you not be able to connect to the host | — | — |
| ssh-key | The BASE64 encoded private key to use when connecting to the server | — | — |
| ssh-use-cloudflared | If set to true, the connection will be tunneled through cloudflared | — | false |
| docker-dir | The directory on the host machine where to put the project folder | — | /02_docker |
| login-script | The script to refresh the docker-login before deployment | — | /opt/docker-login.sh |
| project-env | Useful for staging and prod variants on the same host | — | prod |
| project-name | The name of the project folder to create below the docker-dir | — | ${GITHUB_REPOSITORY}/${project-env} |
| additional-files | A comma separated list of files that should be transferred to the host server | — | — |
| before-script | A shell script to execute on the host machine before the deployment takes place | — | — |
| before-login-script | A shell script to execute on the host machine before the docker login takes place | — | — |
| before-pull-script | A shell script to execute on the host machine before the new image is pulled | — | — |
| after-pull-script | A shell script to execute on the host machine after the new image was pulled | — | — |
| after-script | A shell script to execute on the host machine after the deployment took place | — | — |
| archive-name | Name of the transfer archive | — | ${GITHUB_SHA}.${GITHUB_RUN_ID}.zip |
| server-env-file | (The absolute path to an .env file on the server which will be appended to the generated .env file | — | — |
| docker-compose-options | Additional docker-compose arguments to use when booting the container | — | — |
Outputs
no outputs