blob: 0da3add4788f9922148950f97d5262927e875534 [file] [log] [blame]
include ../chrome-vers.mk
NO_CACHE=false
PREFIX=gerritforge
IMAGE=${PREFIX}/gerrit-ci-slave-bazel:debian-buster
# 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