Skip to content

Commit 773f22e

Browse files
Fix docker tags
1 parent 0c89f23 commit 773f22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
# gives version without the v prefix, e.g. 1.2.3
6868
IMAGE_TAG=${CIRCLE_TAG/v/''}
6969
# gives minor version for latest, e.g. 1.2:latest
70-
MINOR_VERSION=$(echo "$CIRCLE_TAG" | sed -E 's/v([[:digit:]]).([[:digit:]]).([[:digit:]])/\1.\2-latest/g')
70+
MINOR_VERSION=$(echo "$CIRCLE_TAG" | sed -E 's/v([[:digit:]]+).([[:digit:]]+).([[:digit:]]+)/\1.\2-latest/g')
7171
# gives major version for latest, e.g. 1:latest
72-
MAJOR_VERSION=$(echo "$CIRCLE_TAG" | sed -E 's/v([[:digit:]]).([[:digit:]]).([[:digit:]])/\1-latest/g')
72+
MAJOR_VERSION=$(echo "$CIRCLE_TAG" | sed -E 's/v([[:digit:]]+).([[:digit:]]+).([[:digit:]]+)/\1-latest/g')
7373
docker build \
7474
--build-arg GIMBAL_VERSION=$IMAGE_TAG \
7575
-t $IMAGE_NAME:latest \

0 commit comments

Comments
 (0)