Skip to content

Commit f5e1d36

Browse files
authored
Update ci-cd.yml
fix: ci-cd deployment error by changing the repo name to lowercase
1 parent e5bc3ed commit f5e1d36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Extract repo name
5353
id: repo
54-
run: echo "REPO_NAME=$(echo ${{ github.repository }} | awk -F'/' '{print $2}')" >> $GITHUB_ENV
54+
run: echo "REPO_NAME=$(echo ${{ github.repository }} | awk -F'/' '{print tolower($2)}')" >> $GITHUB_ENV
5555

5656
- name: Build and push Docker image
5757
uses: docker/build-push-action@v5
@@ -62,4 +62,4 @@ jobs:
6262

6363
- name: Image digest
6464
run: |
65-
echo "Image pushed: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ github.sha }}"
65+
echo "Image pushed: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ github.sha }}"

0 commit comments

Comments
 (0)