Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan faircloth committed Aug 27, 2019
1 parent 42728da commit e5c4a7c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,18 @@ jobs:
name: Docker pull
command: docker pull $IMAGE_NAME:$CIRCLE_SHA1
- run:
name: Checkout with tags
command: |
git fetch --tags --prune --progress --no-recurse-submodules origin
#git checkout --progress --force $CIRCLE_SHA1
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
if [ -n "$CIRCLE_BRANCH" ]
then
git reset --hard $CIRCLE_SHA1
git checkout -q -B $CIRCLE_BRANCH
fi
git reset --hard $CIRCLE_SHA1
- run:
command: |
docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo /showvariable SemVer
- run:
name: Docker tag image
Expand Down

0 comments on commit e5c4a7c

Please sign in to comment.