Skip to content

Commit e27f3af

Browse files
committed
Change tag prefix and enable pushing images
1 parent cc197f0 commit e27f3af

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/actions/build-and-tag-locally/action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}" \

.github/workflows/test-nightly-unstable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
redisjson_version: master
1414
redisbloom_version: master
1515
redistimeseries_version: master
16-
publish_image: false
16+
publish_image: true
1717
custom_build: branch

0 commit comments

Comments
 (0)