2024-09-24 21:18:06 +02:00
|
|
|
steps:
|
|
|
|
- name: get versions
|
2024-09-24 22:45:52 +02:00
|
|
|
image: git.ar21.de/aaron/debian-ci:latest
|
2024-09-24 21:18:06 +02:00
|
|
|
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"
|
2024-09-28 19:37:23 +02:00
|
|
|
- "cat versions.json | jq -r '.[].version' > full.txt"
|
2024-09-24 22:45:52 +02:00
|
|
|
- "git clone https://git.ar21.de/aaron/nextcloud-fpm.git"
|
2024-09-28 19:37:23 +02:00
|
|
|
- "cp full.txt nextcloud-fpm/versions.txt"
|
2024-09-24 22:45:52 +02:00
|
|
|
- "./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
|
2024-09-28 19:37:23 +02:00
|
|
|
commit_message: "Automatically update Nextcloud versions"
|
2024-09-24 22:45:52 +02:00
|
|
|
ssh_key:
|
|
|
|
from_secret: FORGEJO_SSH_KEY
|