Skip to content

Commit 3f6fd03

Browse files
committed
fix(CI/CD): change github repo in lowercase
1 parent 882c2e4 commit 3f6fd03

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/deploy-dev-unified.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)