[FORGEJO] upgrade to Forgejo v1.20 & the latest setup-forgejo

This commit is contained in:
Earl Warren 2023-11-05 19:53:11 +01:00
parent eea67757f2
commit a9c4dbe512
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -20,7 +20,7 @@ jobs:
with:
user: root
password: admin1234
image-version: 1.19
image-version: 1.20
lxc-ip-prefix: 10.0.9
- name: publish
@ -46,13 +46,13 @@ jobs:
#
rsync -a --exclude .git ./ $dir/
rm $(find $dir/.forgejo/workflows/*.yml | grep -v build-release.yml)
forgejo-test-helper.sh push $dir $url root runner |& tee $dir/pushed
eval $(grep '^sha=' < $dir/pushed)
forgejo-test-helper.sh push $dir $url root runner
sha=$(forgejo-test-helper.sh branch_tip $url root/runner main)
#
# Push a tag to trigger the release workflow and wait for it to complete
#
forgejo-test-helper.sh api POST $url repos/root/runner/tags ${{ steps.forgejo.outputs.token }} --data-raw '{"tag_name": "v'$version'", "target": "'$sha'"}'
forgejo-curl.sh api_json --data-raw '{"tag_name": "v'$version'", "target": "'$sha'"}' $url/api/v1/repos/root/runner/tags
LOOPS=180 forgejo-test-helper.sh wait_success "$url" root/runner $sha
#