github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/containers/ddev-ssh-agent/Makefile (about)

     1  
     2  DOCKER_REPO ?= drud/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)