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