First foray back into auto-catalogue-updatin'
continuous-integration/drone Build encountered an error Details

This commit is contained in:
3wc 2023-01-15 18:24:48 -08:00
parent c4ac778a24
commit ef53b92004
1 changed files with 10 additions and 19 deletions

View File

@ -1,26 +1,18 @@
---
kind: pipeline
name: publish new apps.json
name: generate and publish new recipes.json
steps:
- name: publish new json
image: thecoopcloud/abra
- name: set up recipes repo
image: alpine
environment:
SKOPEO_USER: thecoopcloud
SKOPEO_PASSWORD:
from_secret: thecoopcloud_password
SSH_KEY:
from_secret: abra_bot_deploy_key
commands:
- /root/.local/bin/app-json.py --output /drone/src/apps.json
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
host: swarm.autonomic.zone
stack: coop_cloud_apps_json
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
rm: true
depends_on:
- publish new json
- 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
@ -32,7 +24,6 @@ steps:
from_secret: autonobot_rocketchat_access_token
depends_on:
- publish new json
- deployment
when:
status:
- failure