From 139c4d31453018f1b1b4eb9251a6d03ee6521610 Mon Sep 17 00:00:00 2001 From: sneak Date: Sat, 1 Jun 2024 12:47:13 -0700 Subject: [PATCH] tags by date too --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cfd85da..11e0eb1 100644 --- a/Makefile +++ b/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)