Skip to content

Commit

Permalink
build: pr_check use insights-stage as ref-env (#802)
Browse files Browse the repository at this point in the history
This will deploy the apps using whatever is in stage which is where PRs
are deployed after being merged.
  • Loading branch information
jrusz authored Jun 13, 2024
1 parent 5882916 commit 9095e2a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .rhcicd/pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@
# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
APP_NAME="provisioning" # name of app-sre "application" folder this component lives in
COMPONENT_NAME="provisioning-backend" # name of resourceTemplate component for deploy
IMAGE="quay.io/cloudservices/provisioning-backend" # image location on quay
APP_NAME="provisioning" # name of app-sre "application" folder this component lives in
COMPONENT_NAME="provisioning-backend" # name of resourceTemplate component for deploy
IMAGE="quay.io/cloudservices/provisioning-backend" # image location on quay
DOCKERFILE="build/Dockerfile"

IQE_PLUGINS="provisioning" # name of the IQE plugin for this app.
IQE_MARKER_EXPRESSION="api and smoke" # This is the value passed to pytest -m
IQE_FILTER_EXPRESSION="" # This is the value passed to pytest -k
IQE_CJI_TIMEOUT="30m" # This is the time to wait for smoke test to complete or fail
IQE_PLUGINS="provisioning" # name of the IQE plugin for this app.
IQE_MARKER_EXPRESSION="api and smoke" # This is the value passed to pytest -m
IQE_FILTER_EXPRESSION="" # This is the value passed to pytest -k
IQE_CJI_TIMEOUT="30m" # This is the time to wait for smoke test to complete or fail
REF_ENV="insights-stage"

#EXTRA_DEPLOY_ARGS=

# Install bonfire repo/initialize
# https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd/bootstrap.sh
# This script automates the install / config of bonfire
CICD_URL=https://raw.githubusercontent.com/RedHatInsights/cicd-tools/main
curl -s $CICD_URL/bootstrap.sh > .cicd_bootstrap.sh && source .cicd_bootstrap.sh
curl -s $CICD_URL/bootstrap.sh >.cicd_bootstrap.sh && source .cicd_bootstrap.sh

# This script is used to build the image that is used in the PR Check
source $CICD_ROOT/build.sh
Expand All @@ -29,7 +30,6 @@ source $CICD_ROOT/build.sh
# https://internal.cloud.redhat.com/docs/devprod/ephemeral/02-deploying/
source $CICD_ROOT/deploy_ephemeral_env.sh


# ADD the image stubs
oc project $NAMESPACE

Expand Down

0 comments on commit 9095e2a

Please sign in to comment.