From a9db5f732a133c30a422aa0340e8dabe8dccac93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C5=A0ari=C4=87?= Date: Sun, 24 Dec 2023 18:14:01 +0100 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 35825d4..daed0e5 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -17,6 +17,8 @@ env: # Use docker.io for Docker Hub if empty REGISTRY: ghcr.io # github.repository as / + IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME_ARM64: ${{ github.repository }}:${{ github.ref_name }}-arm64 IMAGE_NAME_AMD64: ${{ github.repository }}:${{ github.ref_name }}-amd64 @@ -84,7 +86,7 @@ jobs: context: . file: dockerfile-arm64 push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta-arm64.outputs.tags }} + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_ARM64 }} labels: ${{ steps.meta-arm64.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max @@ -97,7 +99,7 @@ jobs: context: . file: dockerfile-amd64 push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta-amd64.outputs.tags }} + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_AMD64 }} labels: ${{ steps.meta-amd64.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max