Changed build script

This commit is contained in:
Kasra Bigdeli
2020-06-28 18:12:33 -04:00
parent 30a29e45af
commit c332d9f24e

View File

@@ -6,6 +6,8 @@ set -e
# Print all commands # Print all commands
set -x set -x
pwd
CAPROVER_VERSION_FROM_TAG=$1 CAPROVER_VERSION_FROM_TAG=$1
IMAGE_NAME=caprover/caprover IMAGE_NAME=caprover/caprover
@@ -25,14 +27,12 @@ if [[ "$BRANCH" != "release" ]]; then
exit 1; exit 1;
fi fi
pwd
git clean -fdx . git clean -fdx .
npm ci npm ci
npm run build npm run build
node ./dev-scripts/validateBuildVersion.js node ./dev-scripts/validateBuildVersion.js
# Run validateBuildVersion.js
# Get version from constant file # Get version from constant file
# Get version from tag (CAPROVER_VERSION_FROM_TAG) env var # Get version from tag (CAPROVER_VERSION_FROM_TAG) env var
# Make sure the two are the same # Make sure the two are the same