Add build_id versioning to portable build
This commit is contained in:
parent
ceacedd6fd
commit
9e3d792f62
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue