Skip to content
Snippets Groups Projects
Commit e47f0edb authored by Tiger Watson's avatar Tiger Watson
Browse files

Merge branch 'fix/cleanup_container' into 'master'

Remove manual installation of buildx as it's part of the base image already

See merge request https://gitlab.com/gitlab-org/terraform-images/-/merge_requests/233



Merged-by: default avatarTiger Watson <twatson@gitlab.com>
Approved-by: default avatarTimo Furrer <tfurrer@gitlab.com>
Approved-by: default avatarTiger Watson <twatson@gitlab.com>
Co-authored-by: default avatarBirger J. Nordølum <contact@mindtooth.no>
parents 6f68d1b3 5308a8e5
No related tags found
No related merge requests found
......@@ -96,12 +96,13 @@ build:
- "$DOCKER_DIND_IMAGE"
image: "$DOCKER_DIND_IMAGE"
before_script:
# Install buildx
- mkdir -p ~/.docker/cli-plugins
- wget "https://github.com/docker/buildx/releases/download/v$BUILDX_VERSION/buildx-v$BUILDX_VERSION.linux-amd64" -O ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
# See https://www.docker.com/blog/multi-platform-docker-builds/
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
# See https://docs.docker.com/build/building/multi-platform/#qemu
# To be able to build for arm64 which is not native to hosted runners,
# we need to inject a stub for being able to do so.
#
# The container below is used by the docs article above and hence
# considered upstream, even though it's in a non-Docker namespace.
- docker run --rm --privileged tonistiigi/binfmt
# Registry auth
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment