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

35 lines
943 B
YAML
Raw Normal View History

2021-06-05 06:11:56 +00:00
---
kind: pipeline
name: generate and publish new recipes.json
2021-06-05 06:11:56 +00:00
steps:
- name: set up recipes repo
image: alpine
2021-06-17 19:43:45 +00:00
environment:
SSH_KEY:
from_secret: abra_bot_deploy_key
2021-06-05 06:11:56 +00:00
commands:
2023-01-16 02:39:51 +00:00
- apk add --no-cache git openssh
2023-01-16 02:36:30 +00:00
- mkdir $HOME/.ssh/
- echo "SSH_$KEY" > $HOME/.ssh/id_rsa
2023-01-16 02:43:18 +00:00
- ssh-keyscan -t rsa git.coopcloud.tech >> $HOME/.ssh/known_hosts
- mkdir /.abra/
- git clone ssh://git@git.coopcloud.tech:2222/coop-cloud/recipes-catalogue-json.git /.abra/catalogue
- ls /.abra/catalogue
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:
2021-08-17 01:04:36 +00:00
from_secret: autonobot_rocketchat_access_token
2021-06-05 07:02:54 +00:00
depends_on:
2023-01-16 02:32:27 +00:00
- set up recipes repo
2021-06-05 07:02:54 +00:00
when:
status:
- failure
2021-06-05 06:11:56 +00:00
trigger:
branch:
- main