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

     1  # Makefile for a standard repo with associated container
     2  
     3  ##### These variables need to be adjusted in most repositories #####
     4  
     5  # This repo's root import path (under GOPATH).
     6  # PKG := github.com/drud/repo_name
     7  
     8  # Docker repo for a push
     9  DOCKER_REPO ?= drud/test-ssh-server
    10  
    11  VERSION := $(shell git describe --tags --always --dirty)
    12  
    13  # Tests always run against amd64 (build host). Once tests have passed, a multi-arch build
    14  # will be generated and pushed (the amd64 build will be cached automatically to prevent it from building twice).
    15  # arm64 doesn't make sense here (yet) since gotechnies/alpine-ssh is amd64-only
    16  BUILD_ARCHS=linux/amd64,linux/arm64
    17  
    18  include ../containers_shared.mak
    19  
    20  # Additional targets can be added here
    21  # Also, existing targets can be overridden by copying and customizing them.
    22  multi-arch:
    23  	docker buildx build --platform $(BUILD_ARCHS) -t $(DOCKER_REPO):$(VERSION) $(DOCKER_ARGS) .; \
    24  	echo "created multi-arch builds $(BUILD_ARCHS) for $(DOCKER_REPO)";
    25  
    26  test: container
    27  	true