Skip to content

Commit 87f2807

Browse files
committed
chore: fix next-build-image.yaml - unique step refs for BOTH the meta and inspection steps (though why we need this inspection step is beyond me)
Signed-off-by: Nick Boldt <[email protected]>
1 parent 4134667 commit 87f2807

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/next-build-image.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
- name: Set up Docker Buildx
155155
uses: docker/setup-buildx-action@v3
156156

157-
- name: Set container metadata (for :next build)
157+
- name: Set container metadata (for :next builds)
158158
id: meta-next
159159
if: ${{ env.REF_NAME_SHORT == 'next'}}
160160
uses: docker/metadata-action@v5
@@ -189,6 +189,14 @@ jobs:
189189
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
190190
$(printf '${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
191191
192-
- name: Inspect image
192+
- name: Inspect image (for :next builds)
193+
id: inspect-next
194+
if: ${{ env.REF_NAME_SHORT == 'next'}}
195+
run: |
196+
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta-next.outputs.version }}
197+
198+
- name: Inspect image (for releases)
199+
id: inspect-release
200+
if: ${{ env.REF_NAME_SHORT != 'next'}}
193201
run: |
194-
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
202+
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta-release.outputs.version }}

0 commit comments

Comments
 (0)