From adaf9f3c13028b9a93674cd463bd118c9fe1286f Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Thu, 20 Jul 2023 22:06:36 +0530 Subject: [PATCH] test --- ci-automation/azure-sig.sh | 6 +++--- ci-automation/capi_image.sh | 21 ++++++++++----------- sdk_container/.repo/manifests/version.txt | 6 +++--- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ci-automation/azure-sig.sh b/ci-automation/azure-sig.sh index a7f240a4dd..be8edf050b 100755 --- a/ci-automation/azure-sig.sh +++ b/ci-automation/azure-sig.sh @@ -188,9 +188,9 @@ function ensure-flatcar-staging-sig-image-version-from-vhd() { RESOURCE_GROUP_NAME="${STAGING_SIG_RESOURCE_GROUP}" # shellcheck disable=SC2310 # This might return 1. - if sig-image-version-exists; then - return - fi + #if sig-image-version-exists; then + #return + #fi ensure-resource-group ensure-sig diff --git a/ci-automation/capi_image.sh b/ci-automation/capi_image.sh index 34d7e56ddf..85402619bd 100644 --- a/ci-automation/capi_image.sh +++ b/ci-automation/capi_image.sh @@ -75,8 +75,12 @@ function _inside_capi_image_build() { echo "== Building Flatcar SIG images from VHDs" ci-automation/azure-sig.sh azure_login ci-automation/azure-sig.sh ensure-flatcar-staging-sig-image-version-from-vhd - # echo "== Building Flatcar CAPI SIG image" - # ci-automation/azure-sig.sh build-capi-staging-image + for K8S_VERSION in $K8S_VERSIONS + do + export KUBERNETES_SEMVER="v${K8S_VERSION}" + echo "== Building Flatcar CAPI SIG image" + ci-automation/azure-sig.sh build-capi-staging-image + done ) } @@ -107,15 +111,10 @@ function _capi_image_build_impl() { do setup_capi_params - echo "==== $K8S_VERSIONS" - - for K8S_VERSION in $K8S_VERSIONS - do - touch sdk_container/.env # This file should already contain the required credentials as env vars - echo "export KUBERNETES_SEMVER='v${K8S_VERSION}'" >> sdk_container/.env - docker run --pull always --rm --name="${container_name}" --net host \ - -w /work -v "$PWD":/work "${mantle_ref}" bash -c "git config --global --add safe.directory /work && source ci-automation/capi_image.sh && _inside_capi_image_build" - done + touch sdk_container/.env # This file should already contain the required credentials as env vars + echo "export K8S_VERSIONS='${K8S_VERSIONS}'" >> sdk_container/.env + docker run --pull always --rm --name="${container_name}" --net host \ + -w /work -v "$PWD":/work "${mantle_ref}" bash -c "git config --global --add safe.directory /work && source ci-automation/capi_image.sh && _inside_capi_image_build" done } diff --git a/sdk_container/.repo/manifests/version.txt b/sdk_container/.repo/manifests/version.txt index bfa2aa87ef..74463c6d27 100644 --- a/sdk_container/.repo/manifests/version.txt +++ b/sdk_container/.repo/manifests/version.txt @@ -1,4 +1,4 @@ -FLATCAR_VERSION=3654.0.0+nightly-20230703-2100 -FLATCAR_VERSION_ID=3654.0.0 -FLATCAR_BUILD_ID="nightly-20230703-2100" +FLATCAR_VERSION=3665.0.0 +FLATCAR_VERSION_ID=3665.0.0 +FLATCAR_BUILD_ID="" FLATCAR_SDK_VERSION=3654.0.0+nightly-20230703-2100