This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION_FILE=$1 | |
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
GIT_COMMIT=$(git rev-parse HEAD) | |
BUILD_TAG=$(<$VERSION_FILE) | |
BUILD_TIME=$(TZ="Asia/Ho_Chi_Minh" date '+%Y-%m-%d %H:%M:%S') | |
BUILD_MACHINE=$(hostname) | |
BUILD_USER=$USER | |
echo BUILD_TAG: $BUILD_TAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Increase version in a file | |
version_file="$1" | |
major=0 | |
minor=0 | |
build=0 | |
version=$(<$version_file) | |
# replace \n with space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test-google-pubsub |