blob: f400204ad05ccb35de23add5debd02a0ada7f33a [file] [log] [blame]
include ../chrome-vers.mk
NO_CACHE=false
IMAGE=gerritforge/gerrit-ci-slave-bazel:debian-stretch
# Targets
build:
@for chrome_ver in $(CHROME_VERS); \
do \
cat Dockerfile | CHROME_VER=$$chrome_ver envsubst > Dockerfile-subst ; \
docker build --no-cache=$(NO_CACHE) -f Dockerfile-subst -t ${IMAGE}-$$chrome_ver . ; \
done
publish:
@for chrome_ver in $(CHROME_VERS); \
do \
docker push ${IMAGE}-$$chrome_ver ; \
done
clean:
@for chrome_ver in $(CHROME_VERS); \
do \
docker rmi -f ${IMAGE}-$$chrome_ver ; \
done
.PHONY: clean image publish