From f55c2fa8cde648cbefefe3f6eaeda5640eb0c449 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 29 Jun 2020 12:12:48 +0200 Subject: [PATCH] Run CI using kind (#4843) --- .github/scripts/build.sh | 16 +++------------- .github/scripts/setup_kind.sh | 26 ++++++++++++++++++++++++++ .github/workflows/master.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/smoke.yml | 4 ++-- Makefile | 6 +++--- 6 files changed, 38 insertions(+), 22 deletions(-) create mode 100755 .github/scripts/setup_kind.sh diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 272a8327c35..b38a576ad9c 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -3,21 +3,11 @@ set -e echo "${VERSION}" -echo "Make" -make - -echo "Build" -make docker_build - if [[ -v PUSH_REGISTRY ]] then echo "Logging in to registry" docker login -u "${REGISTRY_USER}" -p "${REGISTRY_PASS}" "${DOCKER_REGISTRY}" - make TAG="${VERSION}" docker_tag docker_push + make TAG="${VERSION}" buildpush +else + make IMAGE_PULL_POLICY=IfNotPresent buildpushkind fi - -echo "Push to registry" -make -j 4 docker_tag docker_push - -echo "Generate templates" -make templates diff --git a/.github/scripts/setup_kind.sh b/.github/scripts/setup_kind.sh new file mode 100755 index 00000000000..15e8c4ea748 --- /dev/null +++ b/.github/scripts/setup_kind.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +curl -Lo ./kind "https://kind.sigs.k8s.io/dl/v0.8.1/kind-$(uname)-amd64" +chmod +x ./kind + +cat <