feat: add drone CI config

This commit is contained in:
decentral1se 2021-11-07 00:06:05 +01:00
parent 7cdae1e361
commit 8188f71d44
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 27 additions and 0 deletions

27
.drone.yml Normal file
View File

@ -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