The image has for running deployer in a small container and supporting all of the default deployer recipes
# Deploy templates
.deploy: &deploy
stage: deploy
image: registry.gitlab.com/pipeline-components/deployer:latest
dependencies: []
before_script:
- eval $(ssh-agent -s)
- >-
[[ ${CI_ENVIRONMENT_NAME:-local} == "testing" && ! -z ${TESTING_DEPLOYMENT_KEY} ]] &&
echo "${TESTING_DEPLOYMENT_KEY}" | tr -d "\r" | ssh-add -
- >-
[[ ${CI_ENVIRONMENT_NAME:-local} == "acceptance" && ! -z ${ACCEPTANCE_DEPLOYMENT_KEY} ]] &&
echo "${ACCEPTANCE_DEPLOYMENT_KEY}" | tr -d "\r" | ssh-add -
- >-
[[ ${CI_ENVIRONMENT_NAME:-local} == "production" && ! -z ${PRODUCTION_DEPLOYMENT_KEY} ]] &&
echo "${PRODUCTION_DEPLOYMENT_KEY}" | tr -d "\r" | ssh-add -
script:
- dep deploy ${CI_ENVIRONMENT_NAME:-local}
deploy production:
<<: *deploy
only:
- /^v[0-9.]+$/
environment:
name: production
*_DEPLOYMENT_KEY
contains the ssh key used for accessing the deployment serverCI_ENVIRONMENT_NAME
environment defined by gitlab
This project uses Semantic Versioning for its version numbering.
Got questions?
Check the discord channel
You could also open an issue here
This is an active open-source project. We are always open to people who want to use the code or contribute to it.
We've set up a separate document for our contribution guidelines.
Thank you for being involved! 😍
The original setup of this repository is by Robbert Müller.
The Build pipeline is large based on Community Hass.io Add-ons by Franck Nijhof.
For a full list of all authors and contributors, check the contributor's page.
This project is licensed under the MIT License by Robbert Müller.