Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dgauldie committed Jul 31, 2024
1 parent 7d70a14 commit b61a61a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b61a61a

Please sign in to comment.