mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 06:34:03 +00:00
scripts: Use install_yq from the kata-containers
repo
As the file is already part of the kata-containers repo, and the tests
repo is about to become read-only, we're good to drop the tests
references from here and use everything coming from the
`kata-containers` repo instead.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
(cherry picked from commit fbc8f8f466
)
Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
9b48525af1
commit
961daee983
@ -6,8 +6,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
export GOPATH=${GOPATH:-${HOME}/go}
|
export GOPATH=${GOPATH:-${HOME}/go}
|
||||||
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
|
||||||
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
|
||||||
export BUILDER_REGISTRY="${BUILDER_REGISTRY:-quay.io/kata-containers/builders}"
|
export BUILDER_REGISTRY="${BUILDER_REGISTRY:-quay.io/kata-containers/builders}"
|
||||||
export PUSH_TO_REGISTRY="${PUSH_TO_REGISTRY:-"no"}"
|
export PUSH_TO_REGISTRY="${PUSH_TO_REGISTRY:-"no"}"
|
||||||
|
|
||||||
@ -29,19 +27,8 @@ ARCH=${ARCH:-$(uname -m)}
|
|||||||
TARGET_OS=${TARGET_OS:-linux}
|
TARGET_OS=${TARGET_OS:-linux}
|
||||||
[ "${CROSS_BUILD}" == "true" ] && BUILDX=buildx && PLATFORM="--platform=${TARGET_OS}/${TARGET_ARCH}"
|
[ "${CROSS_BUILD}" == "true" ] && BUILDX=buildx && PLATFORM="--platform=${TARGET_OS}/${TARGET_ARCH}"
|
||||||
|
|
||||||
clone_tests_repo() {
|
|
||||||
# KATA_CI_NO_NETWORK is (has to be) ignored if there is
|
|
||||||
# no existing clone.
|
|
||||||
if [ -d "${tests_repo_dir}" ] && [ -n "${KATA_CI_NO_NETWORK:-}" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
go get -d -u "$tests_repo" || true
|
|
||||||
}
|
|
||||||
|
|
||||||
install_yq() {
|
install_yq() {
|
||||||
clone_tests_repo
|
pushd "${repo_root_dir}"
|
||||||
pushd "$tests_repo_dir"
|
|
||||||
.ci/install_yq.sh
|
.ci/install_yq.sh
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user