This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
auto-apps-json/.drone.yml

42 lines
989 B
YAML
Raw Normal View History

2021-06-05 06:11:56 +00:00
---
kind: pipeline
name: publish new apps.json
steps:
- name: publish new json
2021-06-17 19:28:08 +00:00
image: thecoopcloud/abra
2021-06-17 19:43:45 +00:00
environment:
SKOPEO_USER: thecoopcloud
SKOPEO_PASSWORD:
2021-06-17 19:50:25 +00:00
from_secret: thecoopcloud_password
2021-06-05 06:11:56 +00:00
commands:
2021-06-17 20:08:47 +00:00
- /root/.local/bin/app-json.py --output /drone/src/apps.json
2021-06-05 06:11:56 +00:00
2021-06-05 06:33:52 +00:00
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
host: swarm.autonomic.zone
stack: coop_cloud_apps_json
deploy_key:
2021-06-05 07:02:54 +00:00
from_secret: drone_ssh_swarm.autonomic.zone
2021-06-05 06:33:52 +00:00
rm: true
2021-06-05 07:04:46 +00:00
depends_on:
- publish new json
2021-06-05 06:33:52 +00:00
2021-06-05 07:02:54 +00:00
- name: notify on failure
image: plugins/matrix
settings:
homeserver: https://matrix.autonomic.zone
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
userid: "@autono-bot:autonomic.zone"
accesstoken:
from_secret: autono_bot_access_token
depends_on:
- publish new json
2021-06-05 07:04:46 +00:00
- deployment
2021-06-05 07:02:54 +00:00
when:
status:
- failure
2021-06-05 06:11:56 +00:00
trigger:
branch:
- main