summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-05-31 11:06:28 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-05-31 11:06:28 -0400
commit6ed11991b13a3fd23ac2e2f222f6156d33572292 (patch)
treebac0952ae21d1df4a46086f2270022f5020796d8 /Makefile
parenta9a23ec9d9e97aebaa33de3695957fd87c693478 (diff)
downloadspm_ci_centos7-6ed11991b13a3fd23ac2e2f222f6156d33572292.tar.gz
update
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)