From ef53b92004c79801575488a38069c67feea862dd Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 15 Jan 2023 18:24:48 -0800 Subject: [PATCH] First foray back into auto-catalogue-updatin' --- .drone.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5e9743f..0467348 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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