This commit is contained in:
Christoph Honal 2020-02-13 22:02:48 +01:00
parent 798ac45d69
commit f34e6ff949

View File

@ -8,13 +8,17 @@ volumes:
steps: steps:
- name: build - name: build
image: alexviscreanu/buildx image: docker
environment: environment:
DOCKER_USER: DOCKER_USER:
from_secret: docker_user from_secret: docker_user
DOCKER_PASSWORD: DOCKER_PASSWORD:
from_secret: docker_password from_secret: docker_password
commands: commands:
- mkdir -p /root/.docker/cli-plugins
- 'echo '{"experimental": "enabled"}' > /root/.docker/config.json'
- wget -O /root/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64
- chmod a+x /root/.docker/cli-plugins/docker-buildx
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 - docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- docker buildx create --use --name crosscomp - docker buildx create --use --name crosscomp
- docker buildx inspect --bootstrap - docker buildx inspect --bootstrap