Prevent untracked files in releases

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2018-12-07 15:30:25 -08:00
parent 11250042eb
commit 1bc5783a3d
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@ if [ -z $VERSION ]; then
exit 1
fi
echo "##> Removing stale build files"
rm -rf ./build || exit 1
echo "##> Removing stale build files and other untracked files"
git clean -x -d -i
test -z "$(git clean -x -d -n)" || exit 1
echo "##> Tagging the release as $VERSION"
git tag $VERSION