Add makefile targets to push docker images

pull/20/head
yuvipanda 2017-05-28 22:57:15 -07:00 zatwierdzone przez Yuvi Panda
rodzic 496abd9e91
commit c527913d28
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -6,7 +6,5 @@ VERSION = $(shell cat version)
build:
docker build -t $(IMAGE_NAME):$(VERSION) .
.PHONY: test
test:
docker build -t $(IMAGE_NAME)-candidate:$(VERSION) .
IMAGE_NAME=$(IMAGE_NAME)-candidate:$(VERSION) test/run
push:
docker push "$(IMAGE_NAME):$(VERSION)"

Wyświetl plik

@ -5,3 +5,7 @@ VERSION = $(shell cat version)
build:
docker build -t $(IMAGE_PREFIX)3.5:$(VERSION) . -f Dockerfile
docker build -t $(IMAGE_PREFIX)2.7:$(VERSION) . -f Dockerfile.py2
push:
docker push "$(IMAGE_PREFIX)3.5:$(VERSION)"
docker push "$(IMAGE_PREFIX)2.7:$(VERSION)"