Skip to content

Commit 7286767

Browse files
committed
test
1 parent d79a9cc commit 7286767

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,33 @@ 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+
export > /tmp/env_vars
34+
35+
cat << EOF > /tmp/rebase.sh
36+
#!/bin/bash
37+
set -xeuo pipefail
38+
39+
source /tmp/env_vars
40+
source /tmp/ci-functions.sh
41+
ci_subscription_register
42+
43+
python -m ensurepip --upgrade
44+
pip install setuptools-rust cryptography pyyaml pygithub gitpython
45+
46+
cp /tmp/pull-secret \${HOME}/.pull-secret.json
47+
48+
tar -xf /tmp/microshift.tgz -C ~ --strip-components 4
49+
cd ~/microshift
50+
DEST_DIR=\${HOME}/.local/bin ./scripts/fetch_tools.sh yq
51+
./scripts/auto-rebase/rebase_job_entrypoint.sh
52+
EOF
53+
chmod +x /tmp/rebase.sh
54+
2855
cat <<EOF > /tmp/install.sh
2956
#!/bin/bash
3057
set -xeuo pipefail
@@ -78,11 +105,15 @@ tar czf /tmp/microshift.tgz /go/src/github.com/openshift/microshift
78105
scp \
79106
"${SHARED_DIR}/ci-functions.sh" \
80107
/tmp/install.sh \
108+
/tmp/env_vars \
109+
/tmp/rebase.sh \
81110
/var/run/rhsm/subscription-manager-org \
82111
/var/run/rhsm/subscription-manager-act-key \
83112
"${CLUSTER_PROFILE_DIR}/pull-secret" \
84113
/tmp/microshift.tgz \
85114
/tmp/config.yaml \
86115
"${INSTANCE_PREFIX}:/tmp"
87116

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

0 commit comments

Comments
 (0)