blob: 2f428ca3ea5028a8733c365a7dd47b4508e467a3 [file] [log] [blame]
NO_CACHE ?= false
DEBIAN_VER ?= stretch
IMAGE=gerritforge/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