2021-06-05 06:11:56 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-01-16 02:24:48 +00:00
|
|
|
name: generate and publish new recipes.json
|
2021-06-05 06:11:56 +00:00
|
|
|
steps:
|
2023-01-16 02:24:48 +00:00
|
|
|
- name: set up recipes repo
|
|
|
|
image: alpine
|
2021-06-17 19:43:45 +00:00
|
|
|
environment:
|
2023-01-16 02:24:48 +00:00
|
|
|
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/
|
2023-01-16 02:24:48 +00:00
|
|
|
- echo "SSH_$KEY" > $HOME/.ssh/id_rsa
|
2023-01-16 02:45:54 +00:00
|
|
|
- ssh-keyscan -p 2222 -t rsa git.coopcloud.tech >> $HOME/.ssh/known_hosts
|
2023-01-16 02:24:48 +00:00
|
|
|
- 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
|