Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit e0d118d

Browse files
committed
Fix CIRCLE_TAG matching in circle.yml
1 parent b25df5c commit e0d118d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- deploy:
1515
name: Deploy the image to Docker Hub
1616
command: |
17-
if [[ "${CIRCLE_TAG}" =~ ^v.*$ ]]; then
17+
if echo -n "${CIRCLE_TAG}" | grep -Eq ^v[0-9]+\.[0-9]+\.[0-9]+$; then
1818
docker tag ${DOCKER_HUB_IMAGE} ${DOCKER_HUB_IMAGE}:${CIRCLE_TAG}
1919
docker login -e ${DOCKER_HUB_EMAIL} -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
2020
docker push ${DOCKER_HUB_IMAGE}:${CIRCLE_TAG}

0 commit comments

Comments
 (0)