From 8188f71d445132648d1b440fa02a0cd4b606f957 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 7 Nov 2021 00:06:05 +0100 Subject: [PATCH] feat: add drone CI config --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fc5e950 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +--- +kind: pipeline +name: deploy to swarm.autonomic.zone +steps: + - name: deployment + image: decentral1se/stack-ssh-deploy:latest + settings: + stack: recipes_coopcloud_tech + deploy_key: + from_secret: drone_ssh_swarm.autonomic.zone + + - name: notify coopcloud-dev on failure + image: plugins/matrix + settings: + homeserver: https://matrix.autonomic.zone + roomid: "IFazIpLtxiScqbHqoa:autonomic.zone" + userid: "@autono-bot:autonomic.zone" + accesstoken: + from_secret: autonobot_rocketchat_access_token + depends_on: + - deployment + when: + status: + - failure +trigger: + branch: + - main