Skip to content

Commit

Permalink
Make sure CI is using service URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada authored Sep 25, 2023
1 parent c05831c commit a6be06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ if [ -z "$PULL_NUMBER" ] || [ $REPO_NAME != "trustyai-service-operator" ]; then
sed -i "s#value: operatorImagePlaceholder#value: quay.io/trustyai/trustyai-service-operator#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
else
echo "Setting manifests in kfctl_openshift to use pull number: $PULL_NUMBER"
sed -i "s#uri: https://github.com/trustyai-explainability/trustyai-explainability/tarball/main#uri: https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/tarball/pull/${PULL_NUMBER}/head#" ./${KFDEF_FILENAME}
sed -i "s#uri: https://github.com/trustyai-explainability/trustyai-service-operator/tarball/main#uri: https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/tarball/pull/${PULL_NUMBER}/head#" ./${KFDEF_FILENAME}

BRANCH_SHA=$(curl https://api.github.com/repos/trustyai-explainability/trustyai-explainability/pulls/${PULL_NUMBER} | jq ".head.sha" | tr -d '"')
BRANCH_SHA=$(curl https://api.github.com/repos/trustyai-explainability/trustyai-service-operator/pulls/${PULL_NUMBER} | jq ".head.sha" | tr -d '"')

# echo "Setting TrustyAI service kfdef to use PR image"
# sed -i "s#value: \"quay.io/trustyai/trustyai-service:latest\"#value: \"quay.io/trustyai/trustyai-service-ci:${BRANCH_SHA}\"#" ../resources/trustyai/trustyai_service_kfdef.yaml
Expand Down

0 comments on commit a6be06b

Please sign in to comment.