Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit fc47e77

Browse files
author
dmitriy-lukyanchikov
committed
fix release tag build
1 parent b9ef694 commit fc47e77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- run:
5757
name: "building docker image"
5858
command: |
59-
if [ -n "$CIRCLE_TAG" ]; then
59+
if [[ -n "$CIRCLE_TAG" ]]; then
6060
docker build --file Dockerfile -t "$DOCKER_NAMESPACE/$CIRCLE_PROJECT_REPONAME:$CIRCLE_TAG" .
6161
else
6262
echo "Error: CIRCLE_TAG is not defined or empty"
@@ -69,9 +69,7 @@ jobs:
6969
- run:
7070
name: "docker tag new version to be latest tag also"
7171
command: |
72-
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){1,2}$ ]]; then
73-
docker tag "$DOCKER_NAMESPACE/$CIRCLE_PROJECT_REPONAME:$CIRCLE_TAG" "$DOCKER_NAMESPACE/$CIRCLE_PROJECT_REPONAME:latest"
74-
fi
72+
docker tag "$DOCKER_NAMESPACE/$CIRCLE_PROJECT_REPONAME:$CIRCLE_TAG" "$DOCKER_NAMESPACE/$CIRCLE_PROJECT_REPONAME:latest"
7573
- run:
7674
name: "push docker image to dockerhub with release version tag"
7775
command: |
@@ -99,7 +97,7 @@ workflows:
9997
context: af-global
10098
filters:
10199
tags:
102-
only: /^v.*/
100+
only: /^v[0-9]+(\.[0-9]+){1,2}$/
103101
branches:
104102
ignore: /.*/
105103

0 commit comments

Comments
 (0)