Skip to content

Commit

Permalink
build: extra environment from circle tag
Browse files Browse the repository at this point in the history
- there could be multiple env-* tags on a commit, so look at the requested CIRCLE_TAG environment variable
  • Loading branch information
rikoe committed Dec 25, 2019
1 parent 12ed1ce commit c6e6845
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ jobs:
echo "Parsing current commit tags. Looking for version and requested environment."
echo "Environment is found via env-* tags"
ENVIRONMENT_TAG=$(git tag -l --points-at HEAD env-*)
DEPLOY_TARGET=${ENVIRONMENT_TAG/env-/}
ENVIRONMENT_TAGS=$(git tag -l --points-at HEAD env-*)
echo "Current env-* tags: $ENVIRONMENT_TAGS"
echo "Requested tag via CircleCI: $CIRCLE_TAG"
DEPLOY_TARGET=${CIRCLE_TAG/env-/}
echo "DEPLOY_TARGET: $DEPLOY_TARGET"
echo "Build version is found via git describe"
Expand Down

0 comments on commit c6e6845

Please sign in to comment.