File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,31 @@ if test -z "${TARGET_IMAGE:-}"; then
9
9
fi
10
10
echo " Test base image: ${TARGET_IMAGE} "
11
11
12
+
12
13
tmpdir=" $( mktemp -d -p /var/tmp) "
13
14
cd " ${tmpdir} "
15
+
16
+ # Detect Prow; if we find it, assume the image requires a pull secret
17
+ kola_args=()
18
+ if test -n " ${JOB_NAME_HASH:- } " ; then
19
+ oc registry login --to auth.json
20
+ cat > pull-secret.bu << 'EOF '
21
+ variant: fcos
22
+ version: 1.1.0
23
+ storage:
24
+ files:
25
+ - path: /etc/ostree/auth.json
26
+ contents:
27
+ local: auth.json
28
+ EOF
29
+ butane -d . < pull-secret.bu > pull-secret.ign
30
+ kola_args+=(" --append-ignition" " pull-secret.ign" )
31
+ fi
32
+
14
33
if test -z " ${BASE_QEMU_IMAGE:- } " ; then
15
34
coreos-installer download -p qemu -f qcow2.xz --decompress
16
35
BASE_QEMU_IMAGE=" $( echo * .qcow2) "
17
36
fi
18
- kola run --oscontainer ostree-unverified-registry:${TARGET_IMAGE} --qemu-image " ./${BASE_QEMU_IMAGE} " ext.bootc.' *'
37
+ kola run --oscontainer ostree-unverified-registry:${TARGET_IMAGE} --qemu-image " ./${BASE_QEMU_IMAGE} " " ${kola_args[@]} " ext.bootc.' *'
19
38
20
39
echo " ok kola bootc"
You can’t perform that action at this time.
0 commit comments