Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# This script determines a version string and a deployment target based on Git history | |
# | |
# Returns: VERSION DEPLOYMENT_TARGET | |
# where DEPLOYMENT_TARGET is [prod|stage|dev|''] | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
tag=$(git describe --tags --exact-match 2>/dev/null) |