now you can run: `make release VERSION=2.2`
which will cut a release, update the libs and generate a .tar.gz
file into the releases folder."

Signed-off-by: Arthur Neves <arthurnn@gmail.com>
This commit is contained in:
Arthur Neves 2018-03-09 19:56:01 +01:00
Родитель 9e14a926e4
Коммит f98602bef2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 04A390FB1E433E17
3 изменённых файлов: 23 добавлений и 0 удалений

3
.gitignore поставляемый
Просмотреть файл

@ -62,6 +62,9 @@ _test/
# Go vendored libs
/vendor/*/
# release folder
releases
# Angular2 Bower Libs
/web/vtctld2/.bowerrc~
/web/vtctld2/bower.json~

Просмотреть файл

@ -241,3 +241,15 @@ docker_unit_test:
# then commit and push.
rebalance_tests:
go run test.go -rebalance 5 -remote-stats http://enisoc.com:15123/travis/stats
release:
ifndef VERSION
$(error Set the env var VERSION with the release version)
endif
mkdir -p releases
docker build -f docker/Dockerfile.release -t vitess/release .
docker run -v ${PWD}/releases:/vt/releases --env VERSION=$(VERSION) vitess/release
git tag -m Version\ $(VERSION) v$(VERSION)
echo "A git tag was created, you can push it with:"
echo "git push origin v$(VERSION)"
echo "Also, don't forget the upload releases/v$(VERSION).tar.gz file to GitHub releases"

Просмотреть файл

@ -0,0 +1,8 @@
# We rely on the base image, as that will re-copy the local
# working tree and build it. Because of so, we trust the local
# vendor folder is up to data.
FROM vitess/base
RUN mkdir /vt/releases
CMD tar -czf /vt/releases/v$VERSION.tar.gz --exclude .git .