summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0bbfd59bb7a3110d5b34f8a6f2c7f9f9e259366b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) -t $(TO_UPLOAD_LATEST) $(shell dirname $<)

push: image
	docker push $(TO_UPLOAD)
	docker push $(TO_UPLOAD_LATEST)