diff --git a/.drone.yml b/.drone.yml index a155ff0..1453d81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,3 +11,12 @@ steps: path: /var/run/docker.sock commands: - docker build --no-cache -t autonomic/drone:drone . + + - name: Deploy Drone with Dokku + image: appleboy/drone-git-push:0.2.0-linux-amd64 + settings: + remote: ssh://dokku@dokku.autonomic.zone:222/drone + ssh_key: + from_secret: drone_deploy_key + when: + branch: master diff --git a/README.md b/README.md index f8ec1e4..fd79565 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,7 @@ > https://drone.io/ -## Deploy +# Deploy -We deploy Drone by hand because it cannot replace itself during the deployment process. - -See the [wiki](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/hacking-on-dokku-apps) for documentation about setting up your SSH connection. - -```bash -$ git remote add dokku dokku@dokku.autonomic.zone:drone -$ git push dokku -``` +1. Push your changes to master and Dokku will try to automatically release +1. See the [Drone dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/drone/)