Skip to content

Commit

Permalink
troubleshooting
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Webber <[email protected]>
  • Loading branch information
sebastianwebber committed Oct 31, 2024
1 parent e832e69 commit cffae60
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,20 @@ jobs:
BPF_TARGET=${{ matrix.platform }}
- name: Export digest
run: |
mkdir -p /tmp/digests
rm -rf /tmp/digests/*
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
export "IMAGE_DIGEST=${digest#sha256:}"
echo "IMAGE_DIGEST=${IMAGE_DIGEST}" >> $GITHUB_ENV
touch "/tmp/digests/${IMAGE_DIGEST}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_DASH_PAIR }}-${{ inputs.docker_target }}-${{ inputs.tags }}
name: digests-${{ inputs.docker_target }}-${{ env.IMAGE_DIGEST }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
overwrite: true
merge:
runs-on: ${{ inputs.runner }}
needs:
Expand Down Expand Up @@ -167,6 +169,9 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
set -eux
ls /tmp/digests -l
cat /tmp/digests/*
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ inputs.registry }}@sha256:%s ' *)
- name: Inspect image
Expand Down

0 comments on commit cffae60

Please sign in to comment.