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

     1  # Docker repo for a push
     2  DOCKER_REPO ?= drud/ddev-router
     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  test: container
    13  	bash -c "test/containertest.sh $(DOCKER_REPO):$(VERSION)"
    14  
    15  multi-arch:
    16  	docker buildx build --platform $(BUILD_ARCHS) -t $(DOCKER_REPO):$(VERSION) $(DOCKER_ARGS) .; \
    17  	echo "created multi-arch builds $(BUILD_ARCHS) for $(DOCKER_REPO)";