diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3ea6f6277d2ed8277985001b8192f92d4aa47853..776876bafc722c2adfa118b48e081347740fe380 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -42,7 +42,7 @@ jobs: # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' + # if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -60,6 +60,7 @@ jobs: type=ref,event=branch type=ref,event=branch,prefix=,suffix=-{{sha}}-{{date 'x'}} type=ref,event=pr + type=ref,event=pr,suffix=-{{sha}} type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.0.') && !contains(github.ref, '-') }} type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, '-') }} @@ -83,7 +84,8 @@ jobs: uses: docker/build-push-action@v6 with: context: . - push: ${{ github.event_name != 'pull_request' }} + # push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=local,src=/tmp/.buildx-cache