Skip to content

Commit 2893bae

Browse files
authored
Merge pull request #2656 from flatcar/tormath1/hetzner
hetzner: use different locations for arm64/amd64
2 parents 015e38d + 0734e06 commit 2893bae

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ci-automation/ci-config.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,6 @@ BRIGHTBOX_PARALLEL="${PARALLEL_TESTS:-1}"
170170
: ${HETZNER_IMAGE_NAME:='flatcar_production_hetzner_image.bin.bz2'}
171171
: ${HETZNER_amd64_INSTANCE_TYPE:="cpx11"}
172172
: ${HETZNER_arm64_INSTANCE_TYPE:="cax11"}
173+
: ${HETZNER_arm64_LOCATION:="fsn1"}
174+
: ${HETZNER_amd64_LOCATION:="hel1"}
173175
HETZNER_PARALLEL="${PARALLEL_TESTS:-1}"
174-
HETZNER_LOCATION="${HETZNER_LOCATION:-fsn1}"

ci-automation/vendor-testing/hetzner.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ source ci-automation/vendor_test.sh
1313
hetzner_instance_type_var="HETZNER_${CIA_ARCH}_INSTANCE_TYPE"
1414
hetzner_instance_type="${!hetzner_instance_type_var}"
1515

16+
hetzner_location_var="HETZNER_${CIA_ARCH}_LOCATION"
17+
hetzner_location="${!hetzner_location_var}"
18+
1619
# HETZNER_TPS_TOKEN should be provided by sdk_container/.env
1720

1821
# We first need to create a temporary project using HETZNER_TPS_TOKEN
@@ -31,7 +34,7 @@ HETZNER_TOKEN=$(curl \
3134
# Upload the image on Hetzner.
3235
IMAGE_ID=$(ore hetzner \
3336
--hetzner-token="${HETZNER_TOKEN}" \
34-
--hetzner-location="${HETZNER_LOCATION}" \
37+
--hetzner-location="${hetzner_location}" \
3538
create-image \
3639
--board="${CIA_ARCH}-usr" \
3740
--name flatcar-"${CIA_VERNUM}" \
@@ -51,7 +54,7 @@ timeout --signal=SIGQUIT 2h kola run \
5154
--platform=hetzner \
5255
--hetzner-token="${HETZNER_TOKEN}" \
5356
--hetzner-server-type="${hetzner_instance_type}" \
54-
--hetzner-location="${HETZNER_LOCATION}" \
57+
--hetzner-location="${hetzner_location}" \
5558
--hetzner-image=${IMAGE_ID} \
5659
"${@}"
5760

0 commit comments

Comments
 (0)