blob: 8b0724ce09303bc07e7b6db091d9c7e6ecd2b527 [file] [log] [blame] [edit]
NO_CACHE ?= false
DEBIAN_VER ?= bullseye
PREFIX=gerritforge
IMAGE=${PREFIX}/gerrit-ci-agent-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