forked from TrueCloudLab/certificates
Merge branch 'docker-buildx' into master
This commit is contained in:
commit
b41aac6f5b
2 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,7 @@ addons:
|
||||||
- fakeroot
|
- fakeroot
|
||||||
- bash-completion
|
- bash-completion
|
||||||
- libpcsclite-dev
|
- libpcsclite-dev
|
||||||
|
- docker-ce
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- V=1
|
- V=1
|
||||||
|
|
|
@ -31,7 +31,9 @@ endif
|
||||||
(wget -O $$HOME/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.$(DOCKER_CLIENT_OS)-amd64 && \
|
(wget -O $$HOME/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.$(DOCKER_CLIENT_OS)-amd64 && \
|
||||||
chmod +x $$HOME/.docker/cli-plugins/docker-buildx)
|
chmod +x $$HOME/.docker/cli-plugins/docker-buildx)
|
||||||
|
|
||||||
docker buildx create --use --name mybuilder --platform="$(DOCKER_PLATFORMS)" || true
|
# Called directly instead of via `docker buildx` because
|
||||||
|
# Travis runs a pre-19.03 Docker that doesn't support plugin discovery
|
||||||
|
$$HOME/.docker/cli-plugins/docker-buildx create --use --name mybuilder --platform="$(DOCKER_PLATFORMS)" || true
|
||||||
|
|
||||||
.PHONY: docker-prepare
|
.PHONY: docker-prepare
|
||||||
|
|
||||||
|
@ -56,7 +58,7 @@ docker-login:
|
||||||
define DOCKER_BUILDX
|
define DOCKER_BUILDX
|
||||||
# $(1) -- Image Tag
|
# $(1) -- Image Tag
|
||||||
# $(2) -- Push (empty is no push | --push will push to dockerhub)
|
# $(2) -- Push (empty is no push | --push will push to dockerhub)
|
||||||
docker buildx build . --progress plain -t $(DOCKER_IMAGE_NAME):$(1) -f docker/Dockerfile.step-ca --platform="$(DOCKER_PLATFORMS)" $(2)
|
$$HOME/.docker/cli-plugins/docker-buildx build . --progress plain -t $(DOCKER_IMAGE_NAME):$(1) -f docker/Dockerfile.step-ca --platform="$(DOCKER_PLATFORMS)" $(2)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# For non-master builds don't build the docker containers.
|
# For non-master builds don't build the docker containers.
|
||||||
|
|
Loading…
Reference in a new issue