From b61a61aff8e76ad4309e30fea637a20f676bf5ce Mon Sep 17 00:00:00 2001 From: David Gauldie Date: Wed, 31 Jul 2024 11:28:27 -0400 Subject: [PATCH] fix syntax errors --- .circleci/config.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1712cdf..45091ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,19 +33,20 @@ commands: tag-generator: description: Format CIRCLE_TAG steps: - - run: Generate appropriate tag - command: | - if [ -n "${CIRCLE_TAG}" ]; then - SEMVER=$( echo ${CIRCLE_TAG} | sed -nre 's/^v[^0-9]*(([0-9]+\.)*[0-9]+(-[a-z]+)?).*/\1/p') - if [[ -n $SEMVER ]]; then - IMAGE_TAG=${SEMVER} + - run: + name: Generate appropriate tag + command: | + if [ -n "${CIRCLE_TAG}" ]; then + SEMVER=$( echo ${CIRCLE_TAG} | sed -nre 's/^v[^0-9]*(([0-9]+\.)*[0-9]+(-[a-z]+)?).*/\1/p') + if [[ -n $SEMVER ]]; then + IMAGE_TAG=${SEMVER} + else + IMAGE_TAG=${CIRCLE_TAG} + fi else - IMAGE_TAG=${CIRCLE_TAG} + IMAGE_TAG=latest fi - else - IMAGE_TAG=latest - fi - export IMAGE_TAG + export IMAGE_TAG jobs: build-light: