Skip to content
Snippets Groups Projects
Unverified Commit 5308a8e5 authored by Birger J. Nordølum's avatar Birger J. Nordølum
Browse files

fix: remove manual installation of buildx

parent 6f68d1b3
No related branches found
No related tags found
No related merge requests found
...@@ -96,12 +96,13 @@ build: ...@@ -96,12 +96,13 @@ build:
- "$DOCKER_DIND_IMAGE" - "$DOCKER_DIND_IMAGE"
image: "$DOCKER_DIND_IMAGE" image: "$DOCKER_DIND_IMAGE"
before_script: before_script:
# Install buildx # See https://docs.docker.com/build/building/multi-platform/#qemu
- mkdir -p ~/.docker/cli-plugins # To be able to build for arm64 which is not native to hosted runners,
- wget "https://github.com/docker/buildx/releases/download/v$BUILDX_VERSION/buildx-v$BUILDX_VERSION.linux-amd64" -O ~/.docker/cli-plugins/docker-buildx # we need to inject a stub for being able to do so.
- chmod a+x ~/.docker/cli-plugins/docker-buildx #
# See https://www.docker.com/blog/multi-platform-docker-builds/ # The container below is used by the docs article above and hence
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 # considered upstream, even though it's in a non-Docker namespace.
- docker run --rm --privileged tonistiigi/binfmt
# Registry auth # Registry auth
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script: 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