Fix point release
Some checks failed
/ Build image (push) Failing after 9s

This commit is contained in:
Marko Korhonen 2024-02-28 17:43:50 +02:00
parent 2dec1eedf8
commit 03cf54c426
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -37,8 +37,9 @@ jobs:
id: point_release
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
run: |
POINT_RELEASE="$(skopeo inspect docker://codeberg.org/forgejo/forgejo:${{ FORGEJO_VERSION }} | jq -r '.RepoTags | last' | cut -d '-' -f 1)"
echo "point_release=$POINT_RELEASE" >> $GITHUB_OUTPUT
VERSION="$(skopeo inspect docker://codeberg.org/forgejo/forgejo:${{ FORGEJO_VERSION }} | jq -r '.RepoTags | last' | cut -d '-' -f 1)"
echo "Point release: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push image
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
uses: docker/build-push-action@v5
@ -48,7 +49,7 @@ jobs:
tags: |
${{ env.REPO }}:latest
${{ env.REPO }}:${{ env.FORGEJO_VERSION }}
${{ env.REPO }}:${{ steps.point_release.outputs.point_release }}
${{ env.REPO }}:${{ steps.point_release.outputs.version }}
- name: Notify in Telegram channel
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
uses: https://github.com/appleboy/telegram-action@master
@ -56,6 +57,6 @@ jobs:
to: "-1001915202306"
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
forgejo-asciidoc v${{ steps.point_release.outputs.point_release }} has just been built. docker pull away!
forgejo-asciidoc v${{ steps.point_release.outputs.version }} has just been built. docker pull away!
See details: https://git.korhonen.cc/FunctionalHacker/-/packages/container/forgejo-asciidoc/latest