File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,29 @@ jobs:
250250 cat /tmp/tags | xargs -i bash -c 'printf "%s" "-t {} " >> /tmp/tagargs'
251251 TAG_ARGS="$(cat /tmp/tagargs)"
252252 TAGS="$(cat /tmp/tags)"
253-
253+
254+ # Process each tag to generate additional format variants
255+ PROCESSED_TAGS=""
256+ ADDITIONAL_TAG_ARGS=""
257+
258+ for tag in $TAGS; do
259+ # Original tag is always included
260+ PROCESSED_TAGS="$PROCESSED_TAGS $tag"
261+
262+ # For RELEASE_X_YY format tags, also create X.YY format with simple sed operations
263+ if echo "$tag" | grep -q "RELEASE_"; then
264+ # First remove RELEASE_ prefix, then replace _ with .
265+ VERSION_TAG=$(echo "$tag" | sed 's/:RELEASE_/:/g' | sed 's/_/./g')
266+ echo "Adding version tag: $VERSION_TAG"
267+ PROCESSED_TAGS="$PROCESSED_TAGS $VERSION_TAG"
268+ ADDITIONAL_TAG_ARGS="$ADDITIONAL_TAG_ARGS -t $VERSION_TAG"
269+ fi
270+ done
271+
272+ # Add additional tags to tag arguments
273+ TAG_ARGS="$TAG_ARGS $ADDITIONAL_TAG_ARGS"
274+ TAGS="$PROCESSED_TAGS"
275+
254276 R_VER=$(docker pull ${{ matrix.base.image }}:${{ matrix.base.amdtag }} 2>&1 > /dev/null && \
255277 docker inspect ${{ matrix.base.image }}:${{ matrix.base.amdtag }} | \
256278 jq -r '.[].Config.Env[]|select(match("^R_VERSION"))|.[index("=")+1:]')
You can’t perform that action at this time.
0 commit comments