Public | Automated Build

Last pushed: 5 months ago
Short Description
Drone 0.5 plugin for deploy with ansible
Full Description

Drone 0.5 plugin for deploy using ansible

Usage:

Creaate inventory ansible/production and playbook ansible/playbook.yml

Put following lines in your .drone.yml

pipeline:
  deploy:
    image: songsterr/drone-deploy
    inventory: production   # optional
    playbook: playbook.yml  # optional
    gc: on                  # optional (on / off)
    when:
      branch: master

Set private key for deployment using CLI:

$ export DRONE_SERVER=https://ci.terra.songsterr.com
$ export DRONE_TOKEN=<GET YOUR TOKEN AT https://ci.terra.songsterr.com/account>
$ drone org secret add --skip-verify=true --image='songsterr/drone-deploy' songsterr SECRET_DEPLOY_KEY @/Users/alv/.ssh/id_songsterr_deploy

Set slack Incoming Webhook URL for notifications about deploy

$ drone org secret add --skip-verify=true --image='songsterr/drone-deploy' songsterr SECRET_SLACK_WEBHOOK_URL https://hooks.slack.com/services/....

Notes

You can find id_songsterr_deploy in 1P

Docker Pull Command
Owner
songsterr
Source Repository

Comments (0)