blob: 0bceabc5d0e98d52a6a3a2122c066fb579678a9b [file] [log] [blame]
NO_CACHE ?= false
DEBIAN_VER ?= buster
PREFIX=gerritforge
IMAGE=${PREFIX}/gerrit-ci-slave-python3:$(DEBIAN_VER)
build: Dockerfile Makefile
cat Dockerfile | DEBIAN_VER=$(DEBIAN_VER) envsubst > Dockerfile-$(DEBIAN_VER)
docker build --no-cache=$(NO_CACHE) -f Dockerfile-$(DEBIAN_VER) -t $(IMAGE) .
publish: build
docker push $(IMAGE)
clean:
docker rmi -f $(IMAGE)
-rm -f id_rsa*
.PHONY: clean