Skip to content

Commit

Permalink
fix image build using same artifact name
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Nov 21, 2024
1 parent 282932e commit 67ce4c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
- dockerfile: Dockerfile
platform: linux/amd64
scope: build-amd
artifactsuffix: amd
- dockerfile: Dockerfile.aarch64
platform: linux/arm64
scope: build-arm
artifactsuffix: arm
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -68,7 +70,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests
name: digests-${{ matrix.artifactsuffix }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -80,7 +82,7 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
name: digests
pattern: digests-*
path: /tmp/digests
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -107,7 +109,7 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador@sha256:%s ' *)
$(printf '${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador@sha256:%s ' $(find . -type f -exec basename {} \;))
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador:${{ steps.meta.outputs.version }}
Expand Down

0 comments on commit 67ce4c7

Please sign in to comment.