Docker image with buildx installed to used in Gitlab CI/CD
728
Dockerfile linksDocker image with buildx installed, this image is used in Gitlab CI/CD to build and push the images on DockerHub.
![]()
Example for .gitlab-ci.yml:
image: aazario/docker-with-buildx:latest
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
services:
- name: docker:dind
build:
stage: build
script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker buildx create --use --driver-opt network=host
- docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag $DOCKER_USERNAME/xxxxxx:latest .
Content type
Image
Digest
sha256:a942327b1…
Size
145.1 MB
Last updated
almost 2 years ago
docker pull aazario/docker-with-buildx