From 87d271038e5e0045249810d3c9ddf445956ed0ed Mon Sep 17 00:00:00 2001 From: naomi Date: Mon, 11 Oct 2021 12:55:09 +0200 Subject: [PATCH] Add '.drone.yml' --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d523cc6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +--- +kind: pipeline +name: deploy to docker container +steps: + - name: deploy via ssh + image: appleboy/drone-ssh + settings: + host: dev.autonomic.zone + port: 222 + username: gno + key: + from_secret: drone_ssh_dev.autonomic.zone + script: + - cd /var/www/gno + - git pull + - composer install + - name: notify on failure + image: plugins/slack + settings: + username: comradebritney + channel: clients.goodnightout + template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}" + webhook: + from_secret: rc_builds_url + depends_on: + - deploy via ssh + when: + status: + - failure + +trigger: + branch: + - dev