github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/containers/ddev-ssh-agent/Makefile (about) 1 2 DOCKER_REPO ?= ddev/ddev-ssh-agent 3 4 VERSION := $(shell git describe --tags --always --dirty) 5 6 # Tests always run against amd64 (build host). Once tests have passed, a multi-arch build 7 # will be generated and pushed (the amd64 build will be cached automatically to prevent it from building twice). 8 BUILD_ARCHS=linux/amd64,linux/arm64 9 10 include ../containers_shared.mak 11 12 multi-arch: 13 docker buildx build --platform $(BUILD_ARCHS) -t $(DOCKER_REPO):$(VERSION) $(DOCKER_ARGS) .; \ 14 echo "created multi-arch builds $(BUILD_ARCHS) for $(DOCKER_REPO)"; 15 16 test: container 17 test/test.sh $(DOCKER_REPO):$(VERSION)