From 54430bd0a3906ec9629cd1b8813e27ddf299a661 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 23 Dec 2022 14:32:58 -0800 Subject: [PATCH] Configure Drone --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7ad22db --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +--- +kind: pipeline +name: deploy to docker container +steps: + - name: hugo build + image: plugins/hugo + hugo_version: 0.87 + validate: true + - name: docker cp deploy + image: 3wordchant/docker-cp-deploy:latest + settings: + host: swarm.autonomic.zone + service: customhtml_sophielewis_lasophielle_app + source: public/ + dest: /usr/share/nginx/html + deploy_key: + from_secret: drone_ssh_swarm.autonomic.zone + depends_on: + - hugo build + - name: notify on failure + image: plugins/slack + settings: + username: comradebritney + channel: internal.robot-test-zone + template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}" + webhook: + from_secret: rc_builds_url + depends_on: + - docker cp deploy + when: + status: + - failure + +trigger: + branch: + - main