Skip to content

Commit

Permalink
ci: fix digest name
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 11, 2023
1 parent 1965ade commit 722d3a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ on:
description: Image target. i.e. drive-abci, dapi
required: true
env:
DIGEST_NAME: digests-${{ github.sha }}
DIGEST_DIR_PATH: /tmp/digests/${{ inputs.image_org }}/${{ inputs.image_name }}
DIGEST_NAME: digests-${{ inputs.image_org }}-${{ inputs.image_name }}-${{ github.sha }}
DIGEST_DIR_PATH: /tmp/digests

jobs:
build-image:
Expand Down Expand Up @@ -148,11 +148,10 @@ jobs:
- name: Create manifest list and push
working-directory: ${{ env.DIGEST_DIR_PATH }}
run: |
echo "Path: ${{ env.DIGEST_DIR_PATH }}"
ls -lah ${{ env.DIGEST_DIR_PATH }}
ls -lah
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ inputs.image_org }}/${{ inputs.image_name }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ inputs.image_org }}/${{ inputs.image_name }}:${{ steps.docker_meta.outputs.version }}
docker buildx imagetools inspect ${{ inputs.image_org }}/${{ inputs.image_name }}:${{ steps.docker_meta.outputs.version }}

0 comments on commit 722d3a0

Please sign in to comment.