make_new_release.sh in switchery-rails-0.8.1.1 vs make_new_release.sh in switchery-rails-0.8.2.0

- old
+ new

@@ -7,16 +7,12 @@ if [[ -n "$LIBRARY_UPDATED" ]]; then echo "Your repository is not clean !" exit 1 fi -echo "Ensuring Docker image $DOCKER_IMAGE_NAME exists ..." -EXISTING_DOCKER_IMAGE=`docker images | grep "$DOCKER_IMAGE_NAME"` -if [[ -z "$EXISTING_DOCKER_IMAGE" ]]; then - echo "Building the Docker image ..." - docker build -t "$DOCKER_IMAGE_NAME" . -fi +echo "Building the Docker image ..." +docker build -t "$DOCKER_IMAGE_NAME" . echo "Updating library code to version $LIBRARY_NEW_VERSION ..." docker run --rm -v `pwd`:/gem/ "$DOCKER_IMAGE_NAME" rake update LIBRARY_UPDATED=`git status --porcelain | grep -v make_new_release.sh` @@ -27,10 +23,11 @@ echo "None of the JS or CSS files have been updated." exit 1 fi echo "Committing new version ..." -git commit -am "Import version $LIBRARY_NEW_VERSION" +git commit -am "Bumped version $LIBRARY_NEW_VERSION" +git tag -a "v$LIBRARY_NEW_VERSION" -m "v$LIBRARY_NEW_VERSION" echo "Releasing gem ..." docker run --rm -v ~/.gitconfig:/root/.gitconfig \ -v ~/.ssh/:/root/.ssh/ \ -v ~/.gem/:/root/.gem/ \