tags by date too
This commit is contained in:
parent
955ddf07ff
commit
139c4d3145
8
Makefile
8
Makefile
|
@ -1,6 +1,7 @@
|
|||
export DOCKER_HOST := ssh://root@nbg1
|
||||
export DOCKER_IMAGE := sneak/drone-golangci-lint:latest
|
||||
export DOCKER_IMAGE := sneak/drone-golangci-lint
|
||||
export REPO := git.eeqj.de/$(DOCKER_IMAGE)
|
||||
export TODAY := $(shell date -Idate -u)
|
||||
|
||||
default: build_and_push
|
||||
|
||||
|
@ -10,7 +11,8 @@ login:
|
|||
docker login git.eeqj.de
|
||||
|
||||
build:
|
||||
docker build -t $(REPO) .
|
||||
docker build --progress plain -t $(REPO):latest -t $(REPO):$(TODAY) .
|
||||
|
||||
push:
|
||||
docker push $(REPO)
|
||||
docker push $(REPO):latest
|
||||
docker push $(REPO):$(TODAY)
|
||||
|
|
Loading…
Reference in New Issue