Drone 0.5 plugin for deploy with ansible
2.1K
This plugin deploys runs ansible playbook with the desired inventory.
Create inventory ansible/production and playbook ansible/playbook.yml
Use next step in your .builderr.yml pipeline.
pipeline:
deploy:
image: hub.terra.songsterr.com/drone-deploy
inventory: production # optional
playbook: playbook.yml # optional
gc: on # optional (on / off)
when:
branch: master
# Settings for using `git` branch based subdomains.
# Example: if `feature/demo` is deployed to `http://demo.feature.example.com`
deploy_feature:
image: songsterr/drone-deploy
inventory: feature
playbook: feature-playbook.yml
server: feature.example.com
prefix: feature # optional
protocol: https # optional
when:
branch: feature/*
You can find id_songsterr_deploy in 1Password. Be careful with key format, it is easy to lost one - and hard to debug it.
To build this image secrets SECRET_DOCKER_PASSWORD and SECRET_DOCKER_USER for repository hub.terra.songsterr.com
must be provided in https://vault.terra.songsterr.com/v1/secret/builderr/environment/drone
To use this image secrets SECRET_DEPLOY_KEY for target hosts
must be provided in https://vault.terra.songsterr.com/v1/secret/builderr/environment/hub.terra.songsterr.com/drone-deploy
NOTE: For now there is no way to specify different keys for different target hosts.
Content type
Image
Digest
Size
55.4 MB
Last updated
over 7 years ago
docker pull songsterr/drone-deploy