Skip to content

Commit 5dc619c

Browse files
committed
Clean up build files
1 parent 303b3b7 commit 5dc619c

File tree

5 files changed

+133
-3
lines changed

5 files changed

+133
-3
lines changed

apps/koku-ui-hccm/build_deploy.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# --------------------------------------------
4+
# Export vars for helper scripts to use
5+
# --------------------------------------------
6+
# name of app-sre "application" folder this component lives in; needs to match for quay
7+
export COMPONENT="hccm"
8+
# IMAGE should match the quay repo set by app.yaml in app-interface
9+
export IMAGE="quay.io/cloudservices/koku-ui-hccm"
10+
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
11+
export APP_ROOT=$(pwd)
12+
export NODE_BUILD_VERSION=22
13+
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
14+
15+
set -exv
16+
# source is preferred to | bash -s in this case to avoid a subshell
17+
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
18+
BUILD_RESULTS=$?
19+
20+
# Stubbed out for now
21+
mkdir -p $WORKSPACE/artifacts
22+
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
23+
<testsuite tests="1">
24+
<testcase classname="dummy" name="dummytest"/>
25+
</testsuite>
26+
EOF
27+
28+
# teardown_docker
29+
exit $BUILD_RESULTS

apps/koku-ui-hccm/pr_check.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# --------------------------------------------
4+
# Export vars for helper scripts to use
5+
# --------------------------------------------
6+
# name of app-sre "application" folder this component lives in; needs to match for quay
7+
export COMPONENT="hccm"
8+
# IMAGE should match the quay repo set by app.yaml in app-interface
9+
export IMAGE="quay.io/cloudservices/koku-ui-hccm"
10+
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
11+
export APP_ROOT=$(pwd)
12+
export NODE_BUILD_VERSION=22
13+
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
14+
15+
# --------------------------------------------
16+
# Options that must be configured by app owner
17+
# --------------------------------------------
18+
IQE_PLUGINS="hccm"
19+
IQE_MARKER_EXPRESSION="smoke"
20+
IQE_FILTER_EXPRESSION=""
21+
22+
set -exv
23+
# source is preferred to | bash -s in this case to avoid a subshell
24+
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
25+
BUILD_RESULTS=$?
26+
27+
# Stubbed out for now
28+
mkdir -p $WORKSPACE/artifacts
29+
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
30+
<testsuite tests="1">
31+
<testcase classname="dummy" name="dummytest"/>
32+
</testsuite>
33+
EOF
34+
35+
# teardown_docker
36+
exit $BUILD_RESULTS

apps/koku-ui-ros/build_deploy.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# --------------------------------------------
4+
# Export vars for helper scripts to use
5+
# --------------------------------------------
6+
# name of app-sre "application" folder this component lives in; needs to match for quay
7+
export COMPONENT="hccm"
8+
# IMAGE should match the quay repo set by app.yaml in app-interface
9+
export IMAGE="quay.io/cloudservices/koku-ui-ros"
10+
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
11+
export APP_ROOT=$(pwd)
12+
export NODE_BUILD_VERSION=22
13+
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
14+
15+
set -exv
16+
# source is preferred to | bash -s in this case to avoid a subshell
17+
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
18+
BUILD_RESULTS=$?
19+
20+
# Stubbed out for now
21+
mkdir -p $WORKSPACE/artifacts
22+
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
23+
<testsuite tests="1">
24+
<testcase classname="dummy" name="dummytest"/>
25+
</testsuite>
26+
EOF
27+
28+
# teardown_docker
29+
exit $BUILD_RESULTS

apps/koku-ui-ros/pr_check.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# --------------------------------------------
4+
# Export vars for helper scripts to use
5+
# --------------------------------------------
6+
# name of app-sre "application" folder this component lives in; needs to match for quay
7+
export COMPONENT="hccm"
8+
# IMAGE should match the quay repo set by app.yaml in app-interface
9+
export IMAGE="quay.io/cloudservices/koku-ui-ros"
10+
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
11+
export APP_ROOT=$(pwd)
12+
export NODE_BUILD_VERSION=22
13+
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
14+
15+
# --------------------------------------------
16+
# Options that must be configured by app owner
17+
# --------------------------------------------
18+
IQE_PLUGINS="hccm"
19+
IQE_MARKER_EXPRESSION="smoke"
20+
IQE_FILTER_EXPRESSION=""
21+
22+
set -exv
23+
# source is preferred to | bash -s in this case to avoid a subshell
24+
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
25+
BUILD_RESULTS=$?
26+
27+
# Stubbed out for now
28+
mkdir -p $WORKSPACE/artifacts
29+
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
30+
<testsuite tests="1">
31+
<testcase classname="dummy" name="dummytest"/>
32+
</testsuite>
33+
EOF
34+
35+
# teardown_docker
36+
exit $BUILD_RESULTS

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"install:pkgs:links": "npm run install:pkgs && npm install --install-links",
2525
"lint": "npm exec --workspaces -- npm run lint",
2626
"test": "npm exec --workspaces -- npm run test --",
27-
"release:stage:ros": "sh scripts/release-branch.sh -s",
28-
"release:prod:hccm": "sh scripts/release-branch.sh -p",
29-
"release:prod:ros": "sh scripts/release-branch.sh -r",
27+
"release:hccm:prod": "sh scripts/release-branch.sh -p",
28+
"release:ros:prod": "sh scripts/release-branch.sh -r",
29+
"release:ros:stage": "sh scripts/release-branch.sh -s",
3030
"start:hccm": "npm run -w @koku-ui/koku-ui-hccm start",
3131
"start:ros": "npm run -w @koku-ui/koku-ui-ros start",
3232
"start:onprem": "npm run -w @koku-ui/koku-ui-onprem start"

0 commit comments

Comments
 (0)