Skip to content

Commit

Permalink
ci(image): fix missing nightly tag and fix tag when building imagetoo…
Browse files Browse the repository at this point in the history
…ls (#932)
  • Loading branch information
grieve54706 authored Nov 21, 2024
1 parent b50b357 commit 44ca1de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.ENGINE_IMAGE }}
tags: ${{ needs.prepare-tag.outputs.tags }}
tags: |
${{ needs.prepare-tag.outputs.tags }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -152,7 +153,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.IBIS_IMAGE }}
tags: ${{ needs.prepare-tag.outputs.tags }}
tags: |
${{ needs.prepare-tag.outputs.tags }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -162,9 +164,10 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
TAGS=$(echo "${{ steps.meta.outputs.tags }}" | awk '{printf "--tag %s ", $0}')
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IBIS_IMAGE }}@sha256:%s ' *) \
--tag ${{ steps.meta.outputs.tags }}
$TAGS
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ steps.meta.outputs.tags }}
3 changes: 2 additions & 1 deletion .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
TAGS=$(echo "${{ steps.meta.outputs.tags }}" | awk '{printf "--tag %s ", $0}')
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IBIS_IMAGE }}@sha256:%s ' *) \
--tag ${{ steps.meta.outputs.tags }}
$TAGS
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ steps.meta.outputs.tags }}

0 comments on commit 44ca1de

Please sign in to comment.