Skip to content

Commit 2ad7e7b

Browse files
authored
Add stable release tag (#342)
* Add a stable tag All 3.0.x will be tagged as nodered/node-red:3.0 All 3.1.x will be tagged as nodered/node-red:3.1 * Calculate Stable version rather than hard code it
1 parent 650a552 commit 2ad7e7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ jobs:
7171
IMAGE=${{ env.DEFAULT_IMAGE }}
7272
PUSH="true"
7373
VERSION=${TRAVIS_TAG:1}
74+
STABLE_VERSION=`echo ${VERSION} | sed -r 's/^([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)$/\1.\2/'`
7475
7576
if [[ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" && "${{ matrix.suffix }}" == "" ]]; then
76-
TAGS="$TAGS,$IMAGE:$VERSION,$IMAGE:latest"
77+
TAGS="$TAGS,$IMAGE:$VERSION,$IMAGE:$STABLE_VERSION,$IMAGE:latest"
7778
elif [[ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" && "${{ matrix.suffix }}" == "-minimal" ]]; then
7879
TAGS="$TAGS,$IMAGE:$VERSION-minimal,$IMAGE:latest-minimal"
7980
fi

0 commit comments

Comments
 (0)