File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -292,21 +292,22 @@ jobs:
292292 done
293293
294294 - name :
295- ' publish docker multiarch manifest (tag: ${{ inputs.imageTag }}-${{
296- steps.git_hash.outputs.sha_short }})'
295+ ' publish docker multiarch manifest (tag: ${{ inputs.imageTag }}-${{ inputs.publishLatest
296+ && "" || "alpha-" }}${{ steps.git_hash.outputs.sha_short }})'
297297 env :
298298 TARGETS : ${{ inputs.targets }}
299299 REGISTRY : ${{ inputs.registry }}
300300 IMAGE_NAME : ${{ inputs.imageName }}
301301 IMAGE_TAG : ${{ inputs.imageTag }}
302302 SHA_SHORT : ${{ steps.git_hash.outputs.sha_short }}
303+ RELEASE_STAGE : ${{ inputs.publishLatest && '' || 'alpha-' }}
303304 run : |
304305 targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
305306
306307 for target in $targets
307308 do
308309 echo "publishing multi-arch manifest for $target"
309- image_name="$REGISTRY/$IMAGE_NAME/$target:${IMAGE_TAG}-${SHA_SHORT}"
310+ image_name="$REGISTRY/$IMAGE_NAME/$target:${IMAGE_TAG}-${RELEASE_STAGE}${ SHA_SHORT}"
310311 base_image="$REGISTRY/$IMAGE_NAME/$target:${IMAGE_TAG}"
311312 echo "image name: $image_name"
312313
You can’t perform that action at this time.
0 commit comments