From ed94e8081b4deaa1e45a91b31ab0a76f4c25a5a3 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Thu, 24 Oct 2024 19:01:06 -0700 Subject: [PATCH] Problem: still can't build the image in GHA ``` ERROR: tag is needed when pushing to registry ``` Solution: use tags from the meta step --- .github/workflows/image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index c9b1b74..b4546f7 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -54,6 +54,7 @@ jobs: with: platforms: linux/${{ matrix.platform }} context: . + tags: ${{ steps.meta.outputs.tags }} outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true labels: ${{ steps.meta.outputs.labels }} allow: security.insecure