Skip to content

Commit

Permalink
Use a unique manifest name
Browse files Browse the repository at this point in the history
  • Loading branch information
tung2744 committed Dec 18, 2024
1 parent c5ee684 commit 0c27735
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/build-custom-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ runs:
BUILDER: ${{ inputs.builder }}
shell: bash
run: |
MANIFEST_NAME="./$(uuidgen).json"
make -C custombuild build-image \
TARGET=$TARGET \
BUILD_ARCH=amd64 \
OUTPUT="type=image,name=$IMAGE_NAME,push-by-digest=true,name-canonical=true,push=true" \
IMAGE_NAME=$IMAGE_NAME \
METADATA_FILE=metadata.json \
METADATA_FILE=$MANIFEST_NAME \
EXTRA_BUILD_OPTS="--ssh=default --builder=container-builder"
cat metadata.json
DIGEST="$(cat metadata.json | jq '.["containerimage.digest"]' -r)"
cat $MANIFEST_NAME
DIGEST="$(cat $MANIFEST_NAME | jq '.["containerimage.digest"]' -r)"
make -C custombuild tag-image SOURCE_DIGESTS="$DIGEST" IMAGE_NAME=$IMAGE_NAME
- name: docker logout
if: ${{ always() }}
Expand Down

0 comments on commit 0c27735

Please sign in to comment.