From f56721dcb976637e17541f630a74404380cf886e Mon Sep 17 00:00:00 2001 From: Richard87 Date: Mon, 14 Oct 2024 14:09:24 +0200 Subject: [PATCH] fix: avoid duplicate docker builds --- .github/workflows/release-please.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 0f75926..58c7459 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -49,7 +49,7 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=semver,pattern=${{ needs.release-please.outputs.version }} + type=semver,pattern=${{ env.TAG }} type=raw,value=latest-{{date 'YYYYMMDDHHmmss'}}-{{sha}} - name: Build and push Docker image @@ -58,7 +58,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TAG}}" + tags: ${{ steps.meta.outputs.tags }} platforms: | linux/amd64 linux/arm64