diff --git a/.woodpecker.yml b/.woodpecker.yml index 28d92f4..5773c34 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,7 +1,20 @@ steps: - name: get versions - image: git.ar21.de/aaron/kustomize-ci:latest + 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" + - "git clone https://git.ar21.de/aaron/nextcloud-fpm.git" + - "./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: "Update Nextcloud Major versions" + ssh_key: + from_secret: FORGEJO_SSH_KEY diff --git a/patch.sh b/patch.sh new file mode 100755 index 0000000..a184730 --- /dev/null +++ b/patch.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +V_ARRAY=() +while read VERSION; do + V_ARRAY+=(${VERSION}) +done <<< $(cat versions.txt) +yq -iY ".matrix.NEXTCLOUD_VERSION = [$(echo "${V_ARRAY[*]}" | sed "s/ /,/g")]" nextcloud-fpm/.woodpecker.yaml \ No newline at end of file