diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 10cb823..262abd4 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -40,6 +40,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta + if: startsWith(github.ref, 'refs/tags/') uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} @@ -50,6 +51,7 @@ jobs: - name: Build and push Docker Image uses: docker/build-push-action@v5 + if: startsWith(github.ref, 'refs/tags/') with: platforms: linux/amd64,linux/arm64 context: .