diff --git a/docker/Makefile b/docker/Makefile index 4bb4b2dc409440fe74dfc53d1d5078b7196ba528..4ee02b8d7b5fea78184b0de52e208962bb291715 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -20,13 +20,17 @@ # # ########################################################################## -.PHONY: all +.PHONY: pub push all: Dockerfile @echo "You may want to consider adding ARGS=--no-cache to force" @echo "Docker to rebuild all layers." docker build . -t laiser/caisar:pub -f $^ --rm +push: all + @echo "You may need to execute 'docker login' beforehand." + docker push laiser/caisar:pub + Dockerfile: Makefile Dockerfile.template env.template sed 's|@UBUNTU_OPAM_BASE@|ocaml/opam:ubuntu-ocaml-4.13|g' Dockerfile.template | \ sed 's|@ENV@|$(shell cat env.template)|g' | \