File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
actions/build-and-tag-locally Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -254,9 +254,21 @@ runs:
254254 id : format-registry-tag
255255 shell : bash
256256 run : |
257- printf "tag=%s:%s%s-%s-%s" \
257+ # Determine tag prefix based on custom_build and release_tag
258+ if [[ -z "${{ inputs.custom_build }}" ]]; then
259+ # custom_build is empty, use release_tag since it's a rlease
260+ tag_prefix="${{ inputs.release_tag }}"
261+ elif [[ "${{ inputs.release_tag }}" == "unstable" ]]; then
262+ # custom_build is not empty but release_tag is unstable, use unstable
263+ tag_prefix="unstable"
264+ else
265+ # custom_build is not empty and release_tag is not unstable, use custom
266+ tag_prefix="custom"
267+ fi
268+
269+ printf "tag=%s:%s-%s-%s-%s" \
258270 "${{ inputs.registry_repository }}" \
259- "${{ inputs.release_tag != '' && format('{0}-', inputs.release_tag || '') } }" \
271+ "${tag_prefix }" \
260272 "${{ github.run_id }}" \
261273 "${{ inputs.distribution }}" \
262274 "${{ steps.platform.outputs.display_name }}" \
Original file line number Diff line number Diff line change 1313 redisjson_version : master
1414 redisbloom_version : master
1515 redistimeseries_version : master
16- publish_image : false
16+ publish_image : true
1717 custom_build : branch
You can’t perform that action at this time.
0 commit comments