auto-recipes-catalogue-json/.drone.yml

33 lines
834 B
YAML

---
kind: pipeline
name: generate and publish new recipes.json
steps:
- name: set up recipes repo
image: alpine
environment:
SSH_KEY:
from_secret: abra_bot_deploy_key
commands:
- apk add --no-cache git
- echo "SSH_$KEY" > $HOME/.ssh/id_rsa
- mkdir /.abra/
- git clone ssh://git@git.coopcloud.tech:2222/coop-cloud/recipes-catalogue-json.git /.abra/catalogue
- ls /.abra/catalogue
- 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: autonobot_rocketchat_access_token
depends_on:
- publish new json
when:
status:
- failure
trigger:
branch:
- main