blob: 6d973c27cacb21de96625c8a2878b3fa79a642c5 [file] [log] [blame]
include ../chrome-vers.mk
NO_CACHE=false
IMAGE=gerritforge/gerrit-ci-slave-bazel:debian-stretch-nocache
BAZEL_VER=3.1.0
BUILDIFIER_VER=3.0.0
BAZELISK_VER=1.4.0
NODE_VER=10
WCT_VER=6.8.0
# Targets
build:
@for chrome_ver in $(CHROME_VERS); \
do \
cat Dockerfile | \
BAZEL_VER=${BAZEL_VER} \
BUILDIFIER_VER=${BUILDIFIER_VER} \
BAZELISK_VER=${BAZELISK_VER} \
NODE_VER=${NODE_VER} \
WCT_VER=${WCT_VER} \
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