blob: b16d0a993cea2cd6c390cb9899db52cc59186ebf [file] [log] [blame]
NO_CACHE ?= false
NODE_VER ?= 10
WCT_VER ?= 6.8.0
IMAGE=gerritforge/gerrit-ci-slave-node-wct:$(NODE_VER)-$(WCT_VER)
build: Dockerfile Makefile
cat Dockerfile | NODE_VER=$(NODE_VER) WCT_VER=$(WCT_VER) envsubst > Dockerfile-$(NODE_VER)-$(WCT_VER)
docker build --no-cache=$(NO_CACHE) -f Dockerfile-$(NODE_VER)-$(WCT_VER) -t $(IMAGE) .
publish: build
docker push $(IMAGE)
clean:
docker rmi -f $(IMAGE)
-rm -f id_rsa*
.PHONY: clean