Skip to content

Commit f899109

Browse files
authored
Use lowercase computed GHCR repository for Docker tags
1 parent 7bfd723 commit f899109

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ jobs:
9191
registry: ghcr.io
9292
username: ${{ github.actor }}
9393
password: ${{ secrets.GITHUB_TOKEN }}
94+
95+
- name: Normalize image repository path
96+
run: echo "IMAGE_REPO=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"
9497

9598
- name: Build and push CPU image
9699
uses: docker/build-push-action@v5
@@ -99,8 +102,8 @@ jobs:
99102
file: ./mohawk-server/Dockerfile
100103
push: true
101104
tags: |
102-
ghcr.io/rwilliamspbg-ops/mohawk-inference-engine/mohawk-server:latest
103-
ghcr.io/rwilliamspbg-ops/mohawk-inference-engine/mohawk-server:${{ github.sha }}
105+
${{ env.IMAGE_REPO }}/mohawk-server:latest
106+
${{ env.IMAGE_REPO }}/mohawk-server:${{ github.sha }}
104107
cache-from: type=gha
105108
cache-to: type=gha,mode=max
106109

@@ -111,8 +114,8 @@ jobs:
111114
file: ./mohawk-server/Dockerfile.cuda
112115
push: true
113116
tags: |
114-
ghcr.io/rwilliamspbg-ops/mohawk-inference-engine/mohawk-server-cuda:latest
115-
ghcr.io/rwilliamspbg-ops/mohawk-inference-engine/mohawk-server-cuda:${{ github.sha }}
117+
${{ env.IMAGE_REPO }}/mohawk-server-cuda:latest
118+
${{ env.IMAGE_REPO }}/mohawk-server-cuda:${{ github.sha }}
116119
cache-from: type=gha
117120
cache-to: type=gha,mode=max
118121

0 commit comments

Comments
 (0)