diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index da1133b..d3d8b89 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,9 @@ on: push: branches: - main + pull_request: + branches: + - main env: REGISTRY: ghcr.io @@ -30,6 +33,7 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: type=sha - name: Build and push image uses: docker/build-push-action@v5 @@ -37,5 +41,5 @@ jobs: context: . file: Dockerfile push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}