@@ -7,10 +7,18 @@ eval "$(hack/get-trustification-env.sh)"
7
7
# after the first setting, you can skip this step
8
8
# warning, if your secrets are stale, do not skip this step
9
9
SKIP_SECRETS=${SKIP_SECRETS:- false}
10
+ USE_RHTAP_IMAGES=${USE_RHTAP_IMAGES:- false}
10
11
11
12
if [ $SKIP_SECRETS == " true" ]; then
12
13
echo " WARNING SKIP_SECRETS set to true, skipping configuration of secrets"
13
14
fi
15
+ if [ $USE_RHTAP_IMAGES == " true" ]; then
16
+ echo " USE_RHTAP_IMAGES is set to $USE_RHTAP_IMAGES "
17
+ echo " Note - configuration is going to use the runner images and Jenkins from redhat-appstudio"
18
+ else
19
+ echo " USE_RHTAP_IMAGES is set to $USE_RHTAP_IMAGES "
20
+ echo " Note - configuration is going to use the runner images#MY_QUAY_USER and Jenkins MY_GITHUB_USER"
21
+ fi
14
22
15
23
if [ $TEST_REPO_ORG == " redhat-appstudio" ]; then
16
24
echo " Cannot do CI testing using the redhat-appstudio org"
@@ -19,10 +27,17 @@ if [ $TEST_REPO_ORG == "redhat-appstudio" ]; then
19
27
fi
20
28
21
29
function updateGitAndQuayRefs() {
22
- if [ -f $1 ]; then
23
- sed -i " s!quay.io/redhat-appstudio/rhtap-task-runner.*!quay.io/$MY_QUAY_USER /rhtap-task-runner:dev!g" $1
24
- sed -i " s!https://github.com/redhat-appstudio!https://github.com/$MY_GITHUB_USER !g" $1
25
- sed -i " s!RHTAP_Jenkins@main!RHTAP_Jenkins@dev!g" $1
30
+ if [ $USE_RHTAP_IMAGES == " true" ]; then
31
+ echo " USE_RHTAP_IMAGES is set to $USE_RHTAP_IMAGES "
32
+ echo " No images or Jenkins references patched"
33
+ else
34
+ echo " USE_RHTAP_IMAGES is set to $USE_RHTAP_IMAGES "
35
+ echo " images or Jenkins references patched to quay.io/$MY_QUAY_USER and github.com/$MY_GITHUB_USER "
36
+ if [ -f $1 ]; then
37
+ sed -i " s!quay.io/redhat-appstudio/rhtap-task-runner.*!quay.io/$MY_QUAY_USER /rhtap-task-runner:dev!g" $1
38
+ sed -i " s!https://github.com/redhat-appstudio!https://github.com/$MY_GITHUB_USER !g" $1
39
+ sed -i " s!RHTAP_Jenkins@.*'!RHTAP_Jenkins@dev'!g" $1
40
+ fi
26
41
fi
27
42
}
28
43
0 commit comments