tags by date too

This commit is contained in:
Jeffrey Paul 2024-06-01 12:47:13 -07:00
parent 955ddf07ff
commit 139c4d3145

View File

@ -1,6 +1,7 @@
export DOCKER_HOST := ssh://root@nbg1 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 REPO := git.eeqj.de/$(DOCKER_IMAGE)
export TODAY := $(shell date -Idate -u)
default: build_and_push default: build_and_push
@ -10,7 +11,8 @@ login:
docker login git.eeqj.de docker login git.eeqj.de
build: build:
docker build -t $(REPO) . docker build --progress plain -t $(REPO):latest -t $(REPO):$(TODAY) .
push: push:
docker push $(REPO) docker push $(REPO):latest
docker push $(REPO):$(TODAY)