Skip to content

Commit 0fb5a10

Browse files
ci: set AWS_REGION on Windows image build jobs
The Windows shell runner uses the host docker config, whose ecr-login credsStore fails `list` with MissingRegion during the anonymous mcr.microsoft.com base-image pull. Give the helper a region so it stops erroring, leaving the rest of the host config (incl. ambient registry.ddbuild.io auth) untouched.
1 parent 697bbea commit 0fb5a10

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.gitlab/generate-ci-images.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ function parse_compose(string $path, array $env): array
148148
variables:
149149
DDCI_CONFIGURE_OTEL_EXPORTER: "true"
150150
GIT_STRATEGY: none
151+
# The host docker config uses the ecr-login credsStore; its `list` errors
152+
# with MissingRegion (e.g. on the anonymous mcr.microsoft.com base pull).
153+
# Give the helper a region so it stops failing; leaves the rest of the
154+
# host config (and its ambient registry.ddbuild.io auth) untouched.
155+
AWS_REGION: "us-east-1"
156+
AWS_DEFAULT_REGION: "us-east-1"
151157
script: |
152158
# Kill leftover containers; a previous run may still hold php_ddtrace.dll open.
153159
$containers = docker ps -aq 2>$null

0 commit comments

Comments
 (0)