Skip to content

Commit

Permalink
Merge pull request #156 from dseevr/fix_build_process_for_release
Browse files Browse the repository at this point in the history
scripts/build.sh: perform an explicit `git fetch` to pull in tags when building a custom $BUILD_VERSION
  • Loading branch information
dseevr authored Jul 18, 2017
2 parents 3725d6a + 02ad917 commit ed25f2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if [ ! -z "${BUILD_VERSION-}" ]; then

git checkout master # make sure we have the latest master + all tags
git pull --ff-only # no merge commits, please
git fetch --tags # shallow clones do not include tags, so doublecheck
git checkout $BUILD_VERSION # BUILD_VERSION is expected to be a valid tag
else
echo "No BUILD_VERSION set, skipping checkout/update of contiv-ui repo"
Expand Down

0 comments on commit ed25f2b

Please sign in to comment.