From df2c7a13d4d7c399db1d730af3c176fce50324c4 Mon Sep 17 00:00:00 2001 From: andrew-pickin-epi Date: Wed, 24 Jul 2024 14:11:07 +0000 Subject: [PATCH] Short tag --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bc24f28..21e072f 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,8 @@ REPO=293385631482.dkr.ecr.eu-west-1.amazonaws.com STORE=epimorphics IMAGE=sensu-alertmanager -VERSION?= $(shell git describe --tags) +TAG?= $(shell git describe --tags `git rev-list --tags --max-count=1`) NAME?=${STORE}/${IMAGE} -COMMIT=$(shell git rev-parse --short HEAD) -TAG?=$(shell printf '%s_%s_%08d' ${VERSION} ${COMMIT} ${GITHUB_RUN_NUMBER}) default: image all: publish @@ -24,6 +22,4 @@ tag: vars: @echo TAG:${TAG} @echo NAME:${NAME} - @echo VERSION:${VERSION} - @echo COMMIT:${COMMIT} @echo IMAGE:${IMAGE}