summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 52910f2..0bbfd59 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,13 @@ REGISTRY=jhunkeler
IMAGE=spm_ci_centos
TAG=$(shell git describe --tags | sed 's/\-/\./' | awk -F'-' '{ print $$1 }')
TO_UPLOAD=$(REGISTRY)/$(IMAGE):$(TAG)
+TO_UPLOAD_LATEST=$(REGISTRY)/$(IMAGE):latest
all: image
image: Dockerfile
- docker build -t $(TO_UPLOAD) $(shell dirname $<)
+ docker build -t $(TO_UPLOAD) -t $(TO_UPLOAD_LATEST) $(shell dirname $<)
push: image
docker push $(TO_UPLOAD)
+ docker push $(TO_UPLOAD_LATEST)