steps: - name: get versions image: git.ar21.de/aaron/debian-ci:latest commands: - "wget https://git.ar21.de/aaron/nextcloud-docker/raw/branch/master/versions.json" - "cat versions.json | jq -r '.[].branch' > versions.txt" - "cat versions.txt" - "cat versions.json | jq -r '.[].version' > full.txt" - "git clone https://git.ar21.de/aaron/nextcloud-fpm.git" - "cp full.txt nextcloud-fpm/versions.txt" - "./patch.sh" - name: git push changes image: appleboy/drone-git-push settings: branch: main remote: ssh://git@git.ar21.de:2222/aaron/nextcloud-fpm.git path: nextcloud-fpm force: false commit: true commit_message: "Automatically update Nextcloud versions" ssh_key: from_secret: FORGEJO_SSH_KEY