Skip to content

Commit 879c3b2

Browse files
get reg
1 parent fdc4842 commit 879c3b2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ jobs:
4444
with:
4545
images: ${{ github.repository }}
4646

47-
- name: Build/push the arm image
47+
- name: Sanitize registry repository name
48+
id: get-reg
49+
run: |
50+
echo "registry=$(echo '${{ steps.meta.outputs.tags }}' | cut -f1 -d:)" | tee -a "$GITHUB_OUTPUT"
51+
52+
- name: Build/push the arch-specific image
4853
id: build
4954
uses: docker/build-push-action@v6
5055
with:
@@ -54,13 +59,13 @@ jobs:
5459
labels: ${{ steps.meta.outputs.labels }}
5560
provenance: true
5661
sbom: true
57-
tags: ${{ steps.meta.outputs.tags }}
62+
tags: ${{ steps.get-reg.outputs.registry }}
5863
outputs: type=image,push-by-digest=true,push=true
5964

6065
- name: Write arch-specific image digest to outputs
6166
id: gen-output
6267
run: |
63-
echo "image-${RUNNER_ARCH,,}=${{ steps.meta.outputs.tags }}@${{ steps.build.outputs.digest }}" | tee -a "$GITHUB_OUTPUT"
68+
echo "image-${RUNNER_ARCH,,}=${{ steps.get-reg.outputs.registry }}@${{ steps.build.outputs.digest }}" | tee -a "$GITHUB_OUTPUT"
6469
6570
merge:
6671
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)