7171 fi
7272 echo "tag=$TAG" >> $GITHUB_OUTPUT
7373 echo "TAG=$TAG" >> $GITHUB_ENV
74+ OWNER="${{ github.repository_owner }}"
75+ echo "GH_REGISTRY=ghcr.io/${OWNER,,}/mfc" >> $GITHUB_ENV
7476 git clone --branch "$BRANCH" --depth 1 ${{ github.server_url }}/${{ github.repository }}.git mfc
7577
7678 - name : Stage
@@ -107,7 +109,7 @@ jobs:
107109 org.opencontainers.image.source=https://github.com/${{ github.repository }}
108110 tags : |
109111 ${{ secrets.DOCKERHUB_USERNAME }}/mfc:${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
110- ghcr.io/ ${{ github.repository_owner }}/mfc :${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
112+ ${{ env.GH_REGISTRY }}:${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
111113 push : true
112114
113115 - name : Build and push image (gpu)
@@ -129,7 +131,7 @@ jobs:
129131 org.opencontainers.image.source=https://github.com/${{ github.repository }}
130132 tags : |
131133 ${{ secrets.DOCKERHUB_USERNAME }}/mfc:${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
132- ghcr.io/ ${{ github.repository_owner }}/mfc :${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
134+ ${{ env.GH_REGISTRY }}:${{ env.TAG }}-${{ matrix.config.name }}-${{ matrix.config.runner }}
133135 push : true
134136
135137 manifests :
@@ -155,12 +157,17 @@ jobs:
155157 - name : Setup Buildx
156158 uses : docker/setup-buildx-action@v3
157159
160+ - name : Set GHCR registry (lowercase)
161+ run : |
162+ OWNER="${{ github.repository_owner }}"
163+ echo "GH_REGISTRY=ghcr.io/${OWNER,,}/mfc" >> $GITHUB_ENV
164+
158165 - name : Create and Push Manifest Lists
159166 env :
160167 TAG : ${{ needs.Container.outputs.tag }}
161168 DH : ${{ secrets.DOCKERHUB_USERNAME }}/mfc
162- GH : ghcr.io/${{ github.repository_owner }}/mfc
163169 run : |
170+ GH="${{ env.GH_REGISTRY }}"
164171 for R in "$DH" "$GH"; do
165172 docker buildx imagetools create -t $R:$TAG-cpu $R:$TAG-cpu-ubuntu-22.04 $R:$TAG-cpu-ubuntu-22.04-arm
166173 docker buildx imagetools create -t $R:$TAG-gpu $R:$TAG-gpu-ubuntu-22.04 $R:$TAG-gpu-ubuntu-22.04-arm
@@ -171,8 +178,8 @@ jobs:
171178 env :
172179 TAG : ${{ needs.Container.outputs.tag }}
173180 DH : ${{ secrets.DOCKERHUB_USERNAME }}/mfc
174- GH : ghcr.io/${{ github.repository_owner }}/mfc
175181 run : |
182+ GH="${{ env.GH_REGISTRY }}"
176183 for R in "$DH" "$GH"; do
177184 docker buildx imagetools create -t $R:latest-cpu $R:$TAG-cpu-ubuntu-22.04 $R:$TAG-cpu-ubuntu-22.04-arm
178185 docker buildx imagetools create -t $R:latest-gpu $R:$TAG-gpu-ubuntu-22.04 $R:$TAG-gpu-ubuntu-22.04-arm
0 commit comments