3939 run : |
4040 echo "Releasing commit: $(git rev-parse HEAD)"
4141
42+ - name : Set lowercase owner
43+ run : echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
44+
4245 - name : Set up QEMU
4346 uses : docker/setup-qemu-action@v3
4447
5861 context : .
5962 push : false
6063 platforms : linux/amd64,linux/arm64
61- cache-from : type=registry,ref=ghcr.io/commit-boost /buildcache:${{ matrix.target-crate}}
62- cache-to : type=registry,ref=ghcr.io/commit-boost /buildcache:${{ matrix.target-crate }},mode=max
64+ cache-from : type=registry,ref=ghcr.io/${{ env.OWNER }} /buildcache:${{ matrix.target-crate}}
65+ cache-to : type=registry,ref=ghcr.io/${{ env.OWNER }} /buildcache:${{ matrix.target-crate }},mode=max
6366 file : provisioning/build.Dockerfile
6467 outputs : type=local,dest=build
6568 build-args : |
@@ -202,6 +205,9 @@ jobs:
202205 tar -xzf ./artifacts/commit-boost-${{ github.ref_name }}-linux_arm64/commit-boost-${{ github.ref_name }}-linux_arm64.tar.gz -C ./artifacts/bin
203206 mv ./artifacts/bin/commit-boost ./artifacts/bin/linux_arm64/commit-boost
204207
208+ - name : Set lowercase owner
209+ run : echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
210+
205211 - name : Set up QEMU
206212 uses : docker/setup-qemu-action@v3
207213
@@ -224,8 +230,8 @@ jobs:
224230 build-args : |
225231 BINARIES_PATH=./artifacts/bin
226232 tags : |
227- ghcr.io/commit-boost /pbs:${{ github.ref_name }}
228- ${{ !contains(github.ref_name, 'rc') && 'ghcr.io/commit-boost /pbs:latest' || '' }}
233+ ghcr.io/${{ env.OWNER }} /pbs:${{ github.ref_name }}
234+ ${{ !contains(github.ref_name, 'rc') && format( 'ghcr.io/{0} /pbs:latest', env.OWNER) || '' }}
229235 file : provisioning/pbs.Dockerfile
230236
231237 # Builds the Signer Docker image
@@ -254,6 +260,9 @@ jobs:
254260 tar -xzf ./artifacts/commit-boost-${{ github.ref_name }}-linux_arm64/commit-boost-${{ github.ref_name }}-linux_arm64.tar.gz -C ./artifacts/bin
255261 mv ./artifacts/bin/commit-boost ./artifacts/bin/linux_arm64/commit-boost
256262
263+ - name : Set lowercase owner
264+ run : echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
265+
257266 - name : Set up QEMU
258267 uses : docker/setup-qemu-action@v3
259268
@@ -276,8 +285,8 @@ jobs:
276285 build-args : |
277286 BINARIES_PATH=./artifacts/bin
278287 tags : |
279- ghcr.io/commit-boost /signer:${{ github.ref_name }}
280- ${{ !contains(github.ref_name, 'rc') && 'ghcr.io/commit-boost /signer:latest' || '' }}
288+ ghcr.io/${{ env.OWNER }} /signer:${{ github.ref_name }}
289+ ${{ !contains(github.ref_name, 'rc') && format( 'ghcr.io/{0} /signer:latest', env.OWNER) || '' }}
281290 file : provisioning/signer.Dockerfile
282291
283292 # Creates a draft release on GitHub with the binaries
0 commit comments