Simplify point release parsing
All checks were successful
/ Build image (push) Successful in 46s

This commit is contained in:
Marko Korhonen 2024-02-28 17:48:49 +02:00
parent 03cf54c426
commit 1474889624
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -37,7 +37,7 @@ jobs:
id: point_release id: point_release
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true' if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
run: | run: |
VERSION="$(skopeo inspect docker://codeberg.org/forgejo/forgejo:${{ FORGEJO_VERSION }} | jq -r '.RepoTags | last' | cut -d '-' -f 1)" VERSION="$(skopeo list-tags docker://codeberg.org/forgejo/forgejo | jq -r '.Tags | last' | cut -d '-' -f 1)"
echo "Point release: $VERSION" echo "Point release: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push image - name: Build and push image