@@ -70,18 +70,22 @@ jobs:
7070 username : ${{ github.actor }}
7171 password : ${{ secrets.GITHUB_TOKEN }}
7272
73+ - name : Set lowercase repository name
74+ run : |
75+ echo "REPO_LOWER=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
76+
7377 - name : Build and push backend Docker image
7478 uses : docker/build-push-action@v5
7579 with :
7680 context : ./backend
7781 push : true
7882 tags : |
79- ghcr.io/${{ github.repository }}/backend:latest
80- ghcr.io/${{ github.repository }}/backend:${{ github.sha }}
83+ ghcr.io/${{ env.REPO_LOWER }}/backend:latest
84+ ghcr.io/${{ env.REPO_LOWER }}/backend:${{ github.sha }}
8185 cache-from : |
82- type=registry,ref=ghcr.io/${{ github.repository }}/backend:cache
83- type=registry,ref=ghcr.io/${{ github.repository }}/backend:latest
84- cache-to : type=registry,ref=ghcr.io/${{ github.repository }}/backend:cache,mode=max
86+ type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/backend:cache
87+ type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/backend:latest
88+ cache-to : type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/backend:cache,mode=max
8589 load : true
8690
8791 - name : Build and push frontend Docker image
@@ -90,12 +94,12 @@ jobs:
9094 context : ./frontend/nextjs-frontend
9195 push : true
9296 tags : |
93- ghcr.io/${{ github.repository }}/frontend:latest
94- ghcr.io/${{ github.repository }}/frontend:${{ github.sha }}
97+ ghcr.io/${{ env.REPO_LOWER }}/frontend:latest
98+ ghcr.io/${{ env.REPO_LOWER }}/frontend:${{ github.sha }}
9599 cache-from : |
96- type=registry,ref=ghcr.io/${{ github.repository }}/frontend:cache
97- type=registry,ref=ghcr.io/${{ github.repository }}/frontend:latest
98- cache-to : type=registry,ref=ghcr.io/${{ github.repository }}/frontend:cache,mode=max
100+ type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/frontend:cache
101+ type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/frontend:latest
102+ cache-to : type=registry,ref=ghcr.io/${{ env.REPO_LOWER }}/frontend:cache,mode=max
99103 load : true
100104
101105 - name : Start services with docker compose
0 commit comments