Skip to content

Commit

Permalink
Merge pull request #303 from splunk/fix/version
Browse files Browse the repository at this point in the history
Fix/version
  • Loading branch information
Ryan Faircloth authored and GitHub committed Feb 3, 2020
2 parents 6c3bdf2 + abf84db commit 99f44f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ jobs:
- versioning/define_version
- versioning/create_version_file:
version_file_path: /tmp/workspace/VERSION
- versioning/create_version_file:
version_file_path: package/VERSION
- run:
name: Record version
command: |
CIRCLE_BRANCH_CLEAN=$(echo ${CIRCLE_BRANCH} | sed 's/[^a-zA-Z0-9\._-]//g')
if [ -n "${CIRCLE_TAG}" ]; then DOCKER_TAG=${CIRCLE_TAG}; else DOCKER_TAG="${CIRCLE_BRANCH_CLEAN}"; fi
if [ -n "${CIRCLE_TAG}" ]; then VERSION=${CIRCLE_TAG}; else VERSION="${CIRCLE_BRANCH_CLEAN}@${CIRCLE_SHA1:0:6}"; fi
echo $DOCKER_TAG>package/VERSION
- docker/install-docker
- docker/check:
registry: $REGISTRY
Expand Down

0 comments on commit 99f44f2

Please sign in to comment.