From f25dbd7ab9cae2d492b151b4ff8872bf7e5d6cff Mon Sep 17 00:00:00 2001 From: David Date: Mon, 17 Nov 2025 12:23:00 +0100 Subject: [PATCH] fix: remove duplicate :preprod tag and align cache image names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed invalid Docker tag errors caused by: 1. Duplicate :preprod suffix in image names (xpeditis-backend:preprod:preprod) 2. Mismatched cache image names (backend vs xpeditis-backend) Changes: - Backend: images: xpeditis-backend (removed :preprod suffix) - Frontend: images: xpeditis-frontend (removed :preprod suffix) - Backend cache: backend:buildcache → xpeditis-backend:buildcache - Frontend cache: frontend:buildcache → xpeditis-frontend:buildcache docker/metadata-action automatically adds branch-based tags, so we should never add :preprod to the base image name. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edaede6..8a70fe8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/xpeditis-backend:preprod + images: ${{ env.REGISTRY }}/xpeditis-backend tags: | type=ref,event=branch type=ref,event=pr @@ -72,8 +72,8 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/backend:buildcache - cache-to: type=registry,ref=${{ env.REGISTRY }}/backend:buildcache,mode=max + cache-from: type=registry,ref=${{ env.REGISTRY }}/xpeditis-backend:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/xpeditis-backend:buildcache,mode=max platforms: linux/amd64 # ============================================ @@ -127,7 +127,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/xpeditis-frontend:preprod + images: ${{ env.REGISTRY }}/xpeditis-frontend tags: | type=ref,event=branch type=ref,event=pr @@ -144,8 +144,8 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/frontend:buildcache - cache-to: type=registry,ref=${{ env.REGISTRY }}/frontend:buildcache,mode=max + cache-from: type=registry,ref=${{ env.REGISTRY }}/xpeditis-frontend:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/xpeditis-frontend:buildcache,mode=max platforms: linux/amd64 build-args: | NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL || 'http://localhost:4000' }}