blob: f7f3e18a697d8ce3612c069e7e77966ec179b6c1 [file] [log] [blame]
include ../chrome-vers.mk
NO_CACHE=false
PREFIX=gerritforge
IMAGE=${PREFIX}/gerrit-ci-agent-bazel-docker:debian-bullseye
# Targets
build:
@for chrome_ver in $(CHROME_VERS); \
do \
cat Dockerfile | CHROME_VER=$$chrome_ver envsubst > Dockerfile-subst ; \
docker build -f Dockerfile-subst --no-cache=$(NO_CACHE) -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