Skip to content

Commit f9ff742

Browse files
committed
feat(ci): Add multi-arch Docker build support with buildx
1 parent 3d5673a commit f9ff742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212

1313
docker-build:
1414
# Use the official docker image.
15-
image: docker:cli
15+
image: docker:latest
1616
stage: build
1717
services:
1818
- docker:dind
1919
variables:
2020
DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
2121
before_script:
22-
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
22+
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
23+
- docker run --privileged --rm tonistiigi/binfmt --install all
2324
# All branches are tagged with $DOCKER_IMAGE_NAME (defaults to commit ref slug)
2425
# Default branch is also tagged with `latest`
2526
script:

0 commit comments

Comments
 (0)