Skip to content

Commit

Permalink
Merge pull request #2656 from flatcar/tormath1/hetzner
Browse files Browse the repository at this point in the history
hetzner: use different locations for arm64/amd64
  • Loading branch information
tormath1 authored Feb 12, 2025
2 parents 015e38d + 0734e06 commit 2893bae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ci-automation/ci-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,6 @@ BRIGHTBOX_PARALLEL="${PARALLEL_TESTS:-1}"
: ${HETZNER_IMAGE_NAME:='flatcar_production_hetzner_image.bin.bz2'}
: ${HETZNER_amd64_INSTANCE_TYPE:="cpx11"}
: ${HETZNER_arm64_INSTANCE_TYPE:="cax11"}
: ${HETZNER_arm64_LOCATION:="fsn1"}
: ${HETZNER_amd64_LOCATION:="hel1"}
HETZNER_PARALLEL="${PARALLEL_TESTS:-1}"
HETZNER_LOCATION="${HETZNER_LOCATION:-fsn1}"
7 changes: 5 additions & 2 deletions ci-automation/vendor-testing/hetzner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source ci-automation/vendor_test.sh
hetzner_instance_type_var="HETZNER_${CIA_ARCH}_INSTANCE_TYPE"
hetzner_instance_type="${!hetzner_instance_type_var}"

hetzner_location_var="HETZNER_${CIA_ARCH}_LOCATION"
hetzner_location="${!hetzner_location_var}"

# HETZNER_TPS_TOKEN should be provided by sdk_container/.env

# We first need to create a temporary project using HETZNER_TPS_TOKEN
Expand All @@ -31,7 +34,7 @@ HETZNER_TOKEN=$(curl \
# Upload the image on Hetzner.
IMAGE_ID=$(ore hetzner \
--hetzner-token="${HETZNER_TOKEN}" \
--hetzner-location="${HETZNER_LOCATION}" \
--hetzner-location="${hetzner_location}" \
create-image \
--board="${CIA_ARCH}-usr" \
--name flatcar-"${CIA_VERNUM}" \
Expand All @@ -51,7 +54,7 @@ timeout --signal=SIGQUIT 2h kola run \
--platform=hetzner \
--hetzner-token="${HETZNER_TOKEN}" \
--hetzner-server-type="${hetzner_instance_type}" \
--hetzner-location="${HETZNER_LOCATION}" \
--hetzner-location="${hetzner_location}" \
--hetzner-image=${IMAGE_ID} \
"${@}"

Expand Down

0 comments on commit 2893bae

Please sign in to comment.