Skip to content

Commit 23ca938

Browse files
committed
test
1 parent d79a9cc commit 23ca938

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

ci-operator/step-registry/openshift/microshift/infra/rpm-install-aws/openshift-microshift-infra-rpm-install-aws-commands.sh

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ if "${OPTIONAL_RPMS}"; then
2525
fi
2626
fi
2727

28+
#TODO if i need to do a rebase then i should have a different script to do it.
29+
# if it fails i need to write a specific file so next steps ignore what happened entirely.
30+
# so not just install, but also rebase.sh
31+
# i need to determine what the images for the rebase are.
32+
33+
cat << EOF > /tmp/rebase.sh
34+
#!/bin/bash
35+
set -xeuo pipefail
36+
37+
source /tmp/ci-functions.sh
38+
ci_subscription_register
39+
40+
python3 -m ensurepip --upgrade
41+
pip3 install setuptools-rust cryptography pyyaml pygithub gitpython
42+
43+
cp /secrets/import-secret/.dockerconfigjson ${HOME}/.pull-secret.json
44+
45+
tar -xf /tmp/microshift.tgz -C ~ --strip-components 4
46+
cd ~/microshift
47+
DEST_DIR=${HOME}/.local/bin ./scripts/fetch_tools.sh yq
48+
./scripts/auto-rebase/rebase_job_entrypoint.sh
49+
EOF
50+
2851
cat <<EOF > /tmp/install.sh
2952
#!/bin/bash
3053
set -xeuo pipefail
@@ -78,11 +101,14 @@ tar czf /tmp/microshift.tgz /go/src/github.com/openshift/microshift
78101
scp \
79102
"${SHARED_DIR}/ci-functions.sh" \
80103
/tmp/install.sh \
104+
/tmp/rebase.sh \
81105
/var/run/rhsm/subscription-manager-org \
82106
/var/run/rhsm/subscription-manager-act-key \
83107
"${CLUSTER_PROFILE_DIR}/pull-secret" \
84108
/tmp/microshift.tgz \
85109
/tmp/config.yaml \
86110
"${INSTANCE_PREFIX}:/tmp"
87111

88-
ssh "${INSTANCE_PREFIX}" "/tmp/install.sh"
112+
#TODO i need to run rebase.sh first. if it succeeds then i keep going. if not I need to flag with a file.
113+
ssh "${INSTANCE_PREFIX}" "/tmp/rebase.sh"
114+
# ssh "${INSTANCE_PREFIX}" "/tmp/install.sh"

0 commit comments

Comments
 (0)