forked from metal3-io/ironic-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-e2e.sh
More file actions
executable file
·28 lines (21 loc) · 763 Bytes
/
ci-e2e.sh
File metadata and controls
executable file
·28 lines (21 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -eux -o pipefail
REPO_ROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")/..")
cd "${REPO_ROOT}" || exit 1
IRSO_REPO="${IRSO_REPO:-https://github.com/metal3-io/ironic-standalone-operator}"
IRSO_BRANCH="${IRSO_BRANCH:-main}"
if [[ -z "${IRSO_PATH:-}" ]]; then
IRSO_PATH="$(mktemp -td irso-XXXXXXXX)"
git clone "${IRSO_REPO}" -b "${IRSO_BRANCH}" "${IRSO_PATH}"
fi
export IRONIC_CUSTOM_IMAGE=localhost/ironic:test
podman build -t "${IRONIC_CUSTOM_IMAGE}" .
archive="$(mktemp --suffix=.tar)"
podman save "${IRONIC_CUSTOM_IMAGE}" > "${archive}"
kind load image-archive -v 2 "${archive}"
rm -f "${archive}"
cd "${IRSO_PATH}/test"
# shellcheck disable=SC1091
. testing.env
export IRONIC_CUSTOM_VERSION=latest
exec go test -timeout 60m