From 77f96753f10b0510817c7952ed9b634a4cfc855d Mon Sep 17 00:00:00 2001 From: Bernd Mueller Date: Fri, 26 Jan 2024 15:55:04 +0100 Subject: [PATCH] don't commit --- .github/workflows/docker-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 02a7f70973..b92ebdca37 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -58,7 +58,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' + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: registry: ${{ env.REGISTRY }} @@ -73,7 +73,7 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest,enable=${{github.ref == 'refs/heads/main'}} + type=raw,value=latest,enable=true type=semver,pattern=v{{major}}.{{minor}} type=semver,pattern=v{{version}},value=${{ inputs.tags }},enable=${{ inputs.tags != '' }} flavor: | @@ -87,7 +87,7 @@ jobs: with: context: . file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha