mirror of
https://github.com/caprover/caprover
synced 2025-12-12 14:25:39 +00:00
Changed build script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user