Skip to content

Commit 7cfbebb

Browse files
authored
Fix tagging for 2.x "latest "release (#284)
1 parent 18b6ec3 commit 7cfbebb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ jobs:
7171
IMAGE=${{ env.DEFAULT_IMAGE }}
7272
PUSH="true"
7373
VERSION=${TRAVIS_TAG:1}
74-
if [ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" ] && [ "${{ matrix.suffix}}" == "" ]; then
74+
75+
if [[ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" && "${{ matrix.suffix }}" == "" ]]; then
7576
TAGS="$TAGS,$IMAGE:$VERSION,$IMAGE:latest"
76-
elif [ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" ] && [ "${{ matrix.suffix}}" == "-minimal" ]; then
77-
TAGS="$TAGS,$IMAGE:$VERSION,$IMAGE:latest-minimal"
78-
fi
79-
TAGS="$TAGS,$IMAGE:latest-${{ matrix.node }}"
80-
if [ "${{ matrix.suffix}}" == "-minimal" ]; then
81-
TAGS="$TAGS,$IMAGE:latest-${{ matrix.node }}${{ matrix.suffix }}"
77+
elif [[ "${{ matrix.node }}" == "${{ env.LATEST_NODE }}" && "${{ matrix.suffix }}" == "-minimal" ]]; then
78+
TAGS="$TAGS,$IMAGE:$VERSION-minimal,$IMAGE:latest-minimal"
8279
fi
80+
81+
TAGS="$TAGS,$IMAGE:latest-{{ matrix.node }}${{ matrix.suffix }}"
82+
8383
else
8484
IMAGE=${{ env.DEV_IMAGE }}
8585
if [[ "$TRAVIS_TAG" == *"dev"* || "$TRAVIS_TAG" == *"beta"* ]]; then
@@ -121,7 +121,7 @@ jobs:
121121
BUILD_DATE=${{ steps.date.outputs.date }}
122122
BUILD_VERSION=${{ steps.nrVersion.outputs.buildVersion }}
123123
BUILD_REF=${{ env.GITHUB_SHA }}
124-
NODE_RED_VERSION=v${{ steps.nrVersion.outputs.version }}
124+
NODE_RED_VERSION=${{ steps.nrVersion.outputs.version }}
125125
TAG_SUFFIX=${{ matrix.suffix }}
126126
127127
tags: ${{ steps.nrVersion.outputs.tags }}

0 commit comments

Comments
 (0)