From 5fd2732c6c4837a4639e6920b6dadc85ef9d569e Mon Sep 17 00:00:00 2001 From: Guillermo Loaysa Date: Sat, 16 Mar 2024 16:10:18 +0100 Subject: [PATCH] ci: create latest tag on docker image and set description --- .github/workflows/docker-publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 293d0fa..7898f5c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -12,6 +12,7 @@ jobs: outputs: didRelease: ${{ steps.semver.outputs.new_release_published }} newVersion: ${{ steps.semver.outputs.new_release_version }} + new_release_notes: ${{ steps.semver.outputs.new_release_notes }} steps: - name: Checkout uses: actions/checkout@v4 @@ -56,10 +57,6 @@ jobs: with: name: build path: ./build - - name: Log download path - run: echo ${{ steps.download.outputs.download-path }} - - name: List directory contents - run: ls -la - name: Log in to GitHub Container Registry uses: docker/login-action@v2 @@ -72,4 +69,8 @@ jobs: with: context: ./ push: true - tags: ghcr.io/${{ github.repository }}:${{ needs.build.outputs.newVersion }} + tags: | + ghcr.io/${{ github.repository }}:${{ needs.build.outputs.newVersion }} + ghcr.io/${{ github.repository }}:latest + labels: | + description=${{ needs.build.outputs.new_release_notes }}