File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
99102 file : ./mohawk-server/Dockerfile
100103 push : true
101104 tags : |
102- ghcr.io/ ${{ github.repository }}/mohawk-server:latest
103- ghcr.io/ ${{ github.repository }}/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/ ${{ github.repository }}/mohawk-server-cuda:latest
115- ghcr.io/ ${{ github.repository }}/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
You can’t perform that action at this time.
0 commit comments