File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,11 +279,15 @@ jobs:
279279 - name : Build and push to GitHub Container Registry
280280 run : |
281281 cd app
282- docker build -t ghcr.io/${{ github.repository }}/$IMAGE_NAME:$GITHUB_SHA .
283- docker tag ghcr.io/${{ github.repository }}/$IMAGE_NAME:$GITHUB_SHA ghcr.io/${{ github.repository }}/$IMAGE_NAME:dev-latest
282+ # Convertir le nom du repository en minuscules pour Docker
283+ REPO_NAME_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
284+ echo "Repository name (lowercase): $REPO_NAME_LOWER"
285+
286+ docker build -t ghcr.io/$REPO_NAME_LOWER/$IMAGE_NAME:$GITHUB_SHA .
287+ docker tag ghcr.io/$REPO_NAME_LOWER/$IMAGE_NAME:$GITHUB_SHA ghcr.io/$REPO_NAME_LOWER/$IMAGE_NAME:dev-latest
284288 echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
285- docker push ghcr.io/${{ github.repository }} /$IMAGE_NAME:$GITHUB_SHA
286- docker push ghcr.io/${{ github.repository }} /$IMAGE_NAME:dev-latest
289+ docker push ghcr.io/$REPO_NAME_LOWER /$IMAGE_NAME:$GITHUB_SHA
290+ docker push ghcr.io/$REPO_NAME_LOWER /$IMAGE_NAME:dev-latest
287291
288292 # ===== PHASE 4: KUBERNETES DEPLOYMENT =====
289293 # deploy-dev:
You can’t perform that action at this time.
0 commit comments