Skip to content

Commit 80afebe

Browse files
Update PR Check Pipeline for Conditional Image Build Handling, Excluding '.ibm' and 'e2e-tests' Directories (#967)
Signed-off-by: Subhash Khileri <[email protected]>
1 parent ba3500b commit 80afebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ibm/pipelines/openshift-tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ run_tests() {
139139

140140
(
141141
set -e
142-
echo Using PR container image: pr-${GIT_PR_NUMBER}-${SHORT_SHA}
142+
echo Using PR container image: ${TAG_NAME}
143143
yarn test
144144
) |& tee "/tmp/${LOGFILE}"
145145

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

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

220-
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}
220+
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}
221221

222222
check_backstage_running
223223
backstage_status=$?

0 commit comments

Comments
 (0)