Skip to content

Commit

Permalink
Update PR Check Pipeline for Conditional Image Build Handling, Exclud…
Browse files Browse the repository at this point in the history
…ing '.ibm' and 'e2e-tests' Directories (janus-idp#967)

Signed-off-by: Subhash Khileri <skhileri@redhat.com>
  • Loading branch information
subhashkhileri committed Feb 15, 2024
1 parent ba3500b commit 80afebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ibm/pipelines/openshift-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ run_tests() {

(
set -e
echo Using PR container image: pr-${GIT_PR_NUMBER}-${SHORT_SHA}
echo Using PR container image: ${TAG_NAME}
yarn test
) |& tee "/tmp/${LOGFILE}"

Expand Down Expand Up @@ -215,9 +215,9 @@ main() {
LONG_SHA=$(echo "$GIT_PR_RESPONSE" | jq -r '.head.sha')
SHORT_SHA=$(git rev-parse --short ${LONG_SHA})

echo "Tag name with short SHA: pr-${GIT_PR_NUMBER}-${SHORT_SHA}"
echo "Tag name with short SHA: ${TAG_NAME}"

helm upgrade -i ${RELEASE_NAME} -n ${NAME_SPACE} rhdh-chart/backstage --version ${CHART_VERSION} -f $DIR/value_files/${HELM_CHART_VALUE_FILE_NAME} --set global.clusterRouterBase=${K8S_CLUSTER_ROUTER_BASE} --set upstream.backstage.image.tag=pr-${GIT_PR_NUMBER}-${SHORT_SHA}
helm upgrade -i ${RELEASE_NAME} -n ${NAME_SPACE} rhdh-chart/backstage --version ${CHART_VERSION} -f $DIR/value_files/${HELM_CHART_VALUE_FILE_NAME} --set global.clusterRouterBase=${K8S_CLUSTER_ROUTER_BASE} --set upstream.backstage.image.tag=${TAG_NAME}

check_backstage_running
backstage_status=$?
Expand Down

0 comments on commit 80afebe

Please sign in to comment.