diff --git a/.github/workflows/build-and-publish-image.yml b/.github/workflows/build-and-publish-image.yml index 95d352b6..373d601e 100644 --- a/.github/workflows/build-and-publish-image.yml +++ b/.github/workflows/build-and-publish-image.yml @@ -14,7 +14,6 @@ on: - '.github/workflows/build-and-publish-image.yml' - 'Dockerfile' - 'reinstall-cmake.sh' - env: REGISTRY: ghcr.io @@ -22,7 +21,7 @@ env: jobs: build-and-push-image: - if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}} + if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true }} runs-on: ubuntu-latest permissions: contents: read @@ -60,7 +59,8 @@ jobs: with: context: . push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:devel + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} build-args: | CONTAINER_VERSION=${{ env.VERSION }} labels: ${{ steps.meta.outputs.labels }}