@@ -157,6 +157,8 @@ jobs:
157157 VERSION : ${{ github.event.inputs.release_name || github.ref_name }}
158158 steps :
159159 - uses : actions/checkout@v4
160+ - name : Set Repository Lowercase
161+ run : echo "REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
160162
161163 - name : Install Nix
162164 uses : cachix/install-nix-action@v30
@@ -170,12 +172,12 @@ jobs:
170172 run : |
171173 nix build .#image-${{ matrix.arch }}
172174 docker load < ./result
173- docker tag grhooks:${{ env.VERSION }} ghcr.io/${{ github.repository_owner }}/grhooks:${{ matrix.arch }}
175+ docker tag grhooks:${{ env.VERSION }} ghcr.io/${{ env.REPOSITORY }}/grhooks:${{ matrix.arch }}
174176
175177 - name : Create and push unified manifest
176178 run : |
177- docker manifest create ghcr.io/${{ github.repository_owner }}/grhooks:${{ env.VERSION }} \
178- --amend ghcr.io/${{ github.repository_owner }}/grhooks:${{ matrix.arch }}
179+ docker manifest create ghcr.io/${{ env.REPOSITORY }}/grhooks:${{ env.VERSION }} \
180+ --amend ghcr.io/${{ env.REPOSITORY }}/grhooks:${{ matrix.arch }}
179181
180182 docker-publish :
181183 runs-on : ubuntu-latest
@@ -190,16 +192,18 @@ jobs:
190192 username : ${{ github.actor }}
191193 password : ${{ secrets.GITHUB_TOKEN }}
192194
195+ - name : Set Repository Lowercase
196+ run : echo "REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
193197 - name : Create and push manifest
194198 run : |
195- IMAGE=ghcr.io/${{ github.repository_owner }}/grhooks:${{ env.VERSION }}
199+ IMAGE=ghcr.io/${{ env.REPOSITORY }}/grhooks:${{ env.VERSION }}
196200 ARCHS='${{ needs.generate-matrix.outputs.arch_list }}'
197201
198202 echo "Creating manifest for architectures: $ARCHS"
199203
200204 manifest_args=""
201205 for arch in $(echo "$ARCHS" | jq -r '.[]'); do
202- manifest_args="$manifest_args --amend ghcr.io/${{ github.repository_owner }}/grhooks:$arch"
206+ manifest_args="$manifest_args --amend ghcr.io/${{ env.REPOSITORY }}/grhooks:$arch"
203207 done
204208
205209 echo "Running docker manifest create $IMAGE $manifest_args"
0 commit comments