File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,20 @@ jobs:
9191 echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
9292 fi
9393
94+ - name : Downcase github.repository_owner
95+ run : |
96+ echo "repository_owner_lowercase=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_ENV
97+ env :
98+ GITHUB_REPOSITORY_OWNER : ' ${{ github.repository_owner }}'
99+
94100 - name : Build and push Docker image (versioned)
95101 if : github.event_name == 'push'
96102 uses : docker/build-push-action@v4
97103 with :
98104 context : .
99105 push : true
100106 platforms : ${{ matrix.config.platforms }}
101- tags : " ghcr.io/${{ github.repository_owner }}/llama.cpp:${{ matrix.config.tag }}-${{ env.COMMIT_SHA }}"
107+ tags : " ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ env.COMMIT_SHA }}"
102108 file : ${{ matrix.config.dockerfile }}
103109
104110 - name : Build and push Docker image (tagged)
@@ -107,5 +113,5 @@ jobs:
107113 context : .
108114 push : ${{ github.event_name == 'push' }}
109115 platforms : ${{ matrix.config.platforms }}
110- tags : " ghcr.io/${{ github.repository_owner }}/llama.cpp:${{ matrix.config.tag }},ghcr.io/${{ github.repository_owner }}/llama.cpp:${{ matrix.config.tag }}-${{ steps.tag.outputs.name }}"
116+ tags : " ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }},ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ steps.tag.outputs.name }}"
111117 file : ${{ matrix.config.dockerfile }}
You can’t perform that action at this time.
0 commit comments