mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-22 17:52:12 +01:00
Merge pull request #3287 from stackitcloud/stackit
This commit is contained in:
commit
bc844a940f
@ -158,3 +158,11 @@ HETZNER_PARALLEL="${PARALLEL_TESTS:-1}"
|
||||
AKAMAI_PARALLEL="${PARALLEL_TESTS:-1}"
|
||||
AKAMAI_REGION="us-ord"
|
||||
AKAMAI_INSTANCE_TYPE="g6-standard-2"
|
||||
|
||||
# -- STACKIT --
|
||||
STACKIT_PARALLEL="${PARALLEL_TESTS:-1}"
|
||||
STACKIT_IMAGE_NAME="flatcar_production_stackit_image.img"
|
||||
: ${STACKIT_amd64_INSTANCE_TYPE:="c2i.8"}
|
||||
: ${STACKIT_arm64_INSTANCE_TYPE:="g1r.4d"}
|
||||
: ${STACKIT_arm64_LOCATION:="eu01-2"}
|
||||
: ${STACKIT_amd64_LOCATION:="eu01-2"}
|
||||
|
||||
@ -262,6 +262,7 @@ function _garbage_collect_impl() {
|
||||
--env VMWARE_ESX_CREDS \
|
||||
--env BRIGHTBOX_CLIENT_ID --env BRIGHTBOX_CLIENT_SECRET \
|
||||
--env AKAMAI_TOKEN \
|
||||
--env STACKIT_SERVICE_ACCOUNT \
|
||||
-w /work -v "$PWD":/work "${mantle_ref}" /work/ci-automation/garbage_collect_cloud.sh
|
||||
|
||||
echo
|
||||
|
||||
@ -9,6 +9,8 @@ timeout --signal=SIGQUIT 60m ore brightbox gc --duration 6h \
|
||||
--brightbox-client-id="${BRIGHTBOX_CLIENT_ID}" --brightbox-client-secret="${BRIGHTBOX_CLIENT_SECRET}"
|
||||
timeout --signal=SIGQUIT 60m ore akamai gc --duration 6h \
|
||||
--akamai-token="${AKAMAI_TOKEN}"
|
||||
timeout --signal=SIGQUIT 60m ore stackit gc --duration 6h \
|
||||
--stackit-service-account-key-path=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode)
|
||||
secret_to_file aws_credentials_config_file "${AWS_CREDENTIALS}"
|
||||
for channel in alpha beta stable lts; do
|
||||
for arch in amd64 arm64; do
|
||||
|
||||
50
ci-automation/vendor-testing/stackit.sh
Executable file
50
ci-automation/vendor-testing/stackit.sh
Executable file
@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2025 The Flatcar Maintainers.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Test execution script for STACKIT vendor.
|
||||
# This script is supposed to run in the mantle container.
|
||||
|
||||
source ci-automation/vendor_test.sh
|
||||
|
||||
stackit_instance_type_var="STACKIT_${CIA_ARCH}_INSTANCE_TYPE"
|
||||
stackit_instance_type="${!stackit_instance_type_var}"
|
||||
|
||||
stackit_location_var="STACKIT_${CIA_ARCH}_LOCATION"
|
||||
stackit_location="${!stackit_location_var}"
|
||||
|
||||
copy_from_buildcache "images/${CIA_ARCH}/${CIA_VERNUM}/${STACKIT_IMAGE_NAME}" .
|
||||
|
||||
kola_test_basename="ci-${CIA_VERNUM//[+.]/-}"
|
||||
|
||||
# Upload the image on STACKIT.
|
||||
IMAGE_ID=$(ore stackit \
|
||||
--stackit-service-account-key-path=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode) \
|
||||
--stackit-project-id="${STACKIT_PROJECT_ID}" \
|
||||
create-image \
|
||||
--board "${CIA_ARCH}-usr" \
|
||||
--name "${kola_test_basename}" \
|
||||
--file="${STACKIT_IMAGE_NAME}"
|
||||
)
|
||||
|
||||
set -x
|
||||
|
||||
timeout --signal=SIGQUIT 2h kola run \
|
||||
--board="${CIA_ARCH}-usr" \
|
||||
--parallel="${STACKIT_PARALLEL}" \
|
||||
--tapfile="${CIA_TAPFILE}" \
|
||||
--channel="${CIA_CHANNEL}" \
|
||||
--basename="${kola_test_basename}" \
|
||||
--platform=stackit \
|
||||
--stackit-service-account-key-path=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode) \
|
||||
--stackit-project-id="${STACKIT_PROJECT_ID}" \
|
||||
--stackit-image-id="${IMAGE_ID}" \
|
||||
--stackit-type="${stackit_instance_type}" \
|
||||
--stackit-availability-zone="${stackit_location}" \
|
||||
--image-version "${CIA_VERNUM}" \
|
||||
"${@}"
|
||||
|
||||
set +x
|
||||
Loading…
x
Reference in New Issue
Block a user