From 4745e8ce3f7b974839e44e6748f684f191cca3b0 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Tue, 4 Feb 2025 14:50:07 -0800 Subject: [PATCH] fix --- .github/workflows/docker-push.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 7c204f0d..51841109 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -1,5 +1,8 @@ name: Publish Docker image +env: + DOCKER_IMAGE: katanemo/archgw # Reusable variable + on: push: branches: @@ -24,7 +27,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: katanemo/archgw + images: ${{ env.DOCKER_IMAGE }} + tags: | + type=raw,value=latest # Force the tag to be "latest" - name: Build and Push ARM64 Image uses: docker/build-push-action@v5 @@ -52,7 +57,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: katanemo/archgw + images: ${{ env.DOCKER_IMAGE }} + tags: | + type=raw,value=latest # Force the tag to be "latest" - name: Build and Push AMD64 Image uses: docker/build-push-action@v5 @@ -79,7 +86,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: katanemo/archgw # Correct repository name + images: ${{ env.DOCKER_IMAGE }} tags: | type=raw,value=latest # Force the tag to be "latest" @@ -87,5 +94,5 @@ jobs: run: | # Combine the architecture-specific images into a "latest" manifest docker buildx imagetools create -t ${{ steps.meta.outputs.tags }} \ - katanemo/archgw:latest-arm64 \ - katanemo/archgw:latest-amd64 + ${{ env.DOCKER_IMAGE }}:latest-arm64 \ + ${{ env.DOCKER_IMAGE }}:latest-amd64