Update CRI tests to build and push to gcs

This enables to the CRI e2e tests to use the build from a PR

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2020-09-21 21:09:36 -07:00
parent efc67b192d
commit 4e0b13544e
5 changed files with 156 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
PROJECT=${PROJECT:-"k8s-cri-containerd"}
# GOOGLE_APPLICATION_CREDENTIALS is the path of service account file.
if [ -z ${GOOGLE_APPLICATION_CREDENTIALS} ]; then
if [ -z ${GOOGLE_APPLICATION_CREDENTIALS:-""} ]; then
echo "GOOGLE_APPLICATION_CREDENTIALS is not set"
exit 1
fi
@@ -28,14 +28,6 @@ fi
# Activate gcloud service account.
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"
# Install dependent libraries.
apt-get update
if apt-cache show libbtrfs-dev > /dev/null; then
apt-get install -y libbtrfs-dev
else
apt-get install -y btrfs-tools
fi
# Kubernetes test infra uses jessie and stretch.
if cat /etc/os-release | grep jessie; then
sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
@@ -43,6 +35,8 @@ if cat /etc/os-release | grep jessie; then
apt-get install -y libseccomp2/jessie-backports
apt-get install -y libseccomp-dev/jessie-backports
else
cat /etc/os-release
apt-get update
apt-get install -y libseccomp2
apt-get install -y libseccomp-dev
fi