Add build_id versioning to portable build

This commit is contained in:
Joshua M. Boniface 2020-06-12 16:05:05 -04:00
parent ceacedd6fd
commit 9e3d792f62

View file

@ -7,7 +7,11 @@ set -o xtrace
pushd ${SOURCE_DIR} pushd ${SOURCE_DIR}
# get version # get version
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )" if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
version="${BUILD_ID}"
else
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
fi
# build archives # build archives
npx yarn install npx yarn install