summaryrefslogtreecommitdiff
path: root/Makefile
blob: 52910f21873b0f97355f297ec81a6872f7ce80bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
REGISTRY=jhunkeler
IMAGE=spm_ci_centos
TAG=$(shell git describe --tags | sed 's/\-/\./' | awk -F'-' '{ print $$1 }')
TO_UPLOAD=$(REGISTRY)/$(IMAGE):$(TAG)

all: image

image: Dockerfile
	docker build -t $(TO_UPLOAD) $(shell dirname $<)

push: image
	docker push $(TO_UPLOAD)