Run a manual build script, if present. (#750)
Publish / Build and publish (push) Successful in 1m31s Details
Deploy Test / Run deploy test suite (push) Successful in 3m34s Details
Webapp Test / Run webapp test suite (push) Successful in 6m1s Details
Smoke Test / Run basic test suite (push) Successful in 4m4s Details
Lint Checks / Run linter (push) Failing after 3s Details

If the tree has a 'build-webapp.sh' script, use that.

Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/750
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
ci-test^2 v1.1.0-65f05ea-202402210021
Thomas E Lackey 2024-02-21 00:20:50 +00:00 committed by Thomas E Lackey
parent 01f9fe67ed
commit 65f05ea80c
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,13 @@ WORK_DIR="${1:-/app}"
OUTPUT_DIR="${2:-build}"
DEST_DIR="${3:-/data}"
if [ -f "${WORK_DIR}/package.json" ]; then
if [ -f "${WORK_DIR}/build-webapp.sh" ]; then
echo "Building webapp with ${WORK_DIR}/build-webapp.sh ..."
cd "${WORK_DIR}" || exit 1
rm -rf "${DEST_DIR}"
./build-webapp.sh "${DEST_DIR}" || exit 1
elif [ -f "${WORK_DIR}/package.json" ]; then
echo "Building node-based webapp ..."
cd "${WORK_DIR}" || exit 1