This commit is contained in:
parent
a710a49ce2
commit
830b3cae1f
1 changed files with 4 additions and 4 deletions
|
@ -34,11 +34,11 @@ jobs:
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
- name: Get point release
|
- name: Get point release
|
||||||
id: get-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: |
|
||||||
echo "POINT_RELEASE=$(skopeo inspect docker://codeberg.org/forgejo/forgejo:${{ FORGEJO_VERSION }} | jq -r '.RepoTags | last' | cut -d '-' -f 1)" >> $GITHUB_ENV
|
echo "POINT_RELEASE=$(skopeo inspect docker://codeberg.org/forgejo/forgejo:${{ FORGEJO_VERSION }} | jq -r '.RepoTags | last' | cut -d '-' -f 1)" >> $GITHUB_ENV
|
||||||
echo "::set-output name=point-release::$POINT_RELEASE }}"
|
echo "point_release=$POINT_RELEASE" >> $GITHUB_OUTPUT
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REPO }}:latest
|
${{ env.REPO }}:latest
|
||||||
${{ env.REPO }}:${{ env.FORGEJO_VERSION }}
|
${{ env.REPO }}:${{ env.FORGEJO_VERSION }}
|
||||||
${{ env.REPO }}:${{ steps.get-point-release.outputs.point-release }}
|
${{ env.REPO }}:${{ steps.point_release.outputs.point_release }}
|
||||||
- name: Notify in Telegram channel
|
- name: Notify in Telegram channel
|
||||||
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
if: env.PUSHED == 'true' || steps.check.outputs.differs == 'true'
|
||||||
uses: https://github.com/appleboy/telegram-action@master
|
uses: https://github.com/appleboy/telegram-action@master
|
||||||
|
@ -56,6 +56,6 @@ jobs:
|
||||||
to: "-1001915202306"
|
to: "-1001915202306"
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
message: |
|
message: |
|
||||||
forgejo-asciidoc v${{ steps.get-point-release.outputs.point-release }} has just been built. docker pull away!
|
forgejo-asciidoc v${{ steps.point_release.outputs.point_release }} has just been built. docker pull away!
|
||||||
|
|
||||||
See details: https://git.korhonen.cc/FunctionalHacker/-/packages/container/forgejo-asciidoc/latest
|
See details: https://git.korhonen.cc/FunctionalHacker/-/packages/container/forgejo-asciidoc/latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue