The github actions were previously ran with Node 20, this bumps them to Node 22. README was also updated to reflect currently used version of Node.
29 lines
1 KiB
Bash
Executable file
29 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# --------------------------------------------
|
|
# Export vars for helper scripts to use
|
|
# --------------------------------------------
|
|
# name of app-sre "application" folder this component lives in; needs to match for quay
|
|
export COMPONENT="image-builder"
|
|
# IMAGE should match the quay repo set by app.yaml in app-interface
|
|
export IMAGE="quay.io/cloudservices/image-builder-frontend"
|
|
export APP_ROOT=$(pwd)
|
|
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
|
|
export NODE_BUILD_VERSION=22
|
|
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
|
|
|
|
set -exv
|
|
# source is preferred to | bash -s in this case to avoid a subshell
|
|
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
|
|
BUILD_RESULTS=$?
|
|
|
|
# Stubbed out for now
|
|
mkdir -p $WORKSPACE/artifacts
|
|
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
|
|
<testsuite tests="1">
|
|
<testcase classname="dummy" name="dummytest"/>
|
|
</testsuite>
|
|
EOF
|
|
|
|
# teardown_docker
|
|
exit $BUILD_RESULTS
|