Skip to content

Commit a5ae1a6

Browse files
committed
fix(ci): limit container builds to amd64 and arm64 only
- Install only arm64 QEMU emulator instead of all architectures - Hardcode PLATFORMS to prevent accidental overrides
1 parent 3cba40e commit a5ae1a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ cli:npm:publish:
283283
echo "Logging into container registry..."
284284
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY" -u "$REGISTRY_USER" --password-stdin
285285

286-
echo "Enabling binfmt (QEMU) for multi-arch builds..."
287-
docker run --privileged --rm tonistiigi/binfmt --install all
286+
echo "Enabling binfmt (QEMU) for arm64 builds..."
287+
docker run --privileged --rm tonistiigi/binfmt --install arm64
288288

289289
echo "Creating/using buildx builder..."
290290
docker buildx create --name postgres-ai-builder --use 2>/dev/null || docker buildx use postgres-ai-builder
@@ -351,7 +351,7 @@ docker:publish:images:
351351
352352
VERSION="$RAW_TAG"
353353
BUILD_TS="$(date -u '+%Y-%m-%d %H:%M:%S UTC')"
354-
PLATFORMS="${PLATFORMS:-linux/amd64,linux/arm64}"
354+
PLATFORMS="linux/amd64,linux/arm64"
355355
- *docker-build-script
356356
rules:
357357
- if: '$CI_COMMIT_TAG'

0 commit comments

Comments
 (0)