From d7c8810c65e04e2808d95acb4de1e5af3c6360f7 Mon Sep 17 00:00:00 2001 From: Erik Wramner Date: Sun, 12 Jan 2020 12:09:29 +0100 Subject: [PATCH] Generate correct VCS_VERSION #1364 --- Makefile | 2 +- hooks/build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f02b05b0..8b618459 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME = tvial/docker-mailserver:testing VCS_REF := $(shell git rev-parse --short HEAD) -VCS_VERSION := $(shell git describe) +VCS_VERSION := $(shell git describe --tags --contains --always) all: build backup generate-accounts run generate-accounts-after-run fixtures tests clean no-build: backup generate-accounts run generate-accounts-after-run fixtures tests clean diff --git a/hooks/build b/hooks/build index 4cfbe0f0..e45a55c5 100755 --- a/hooks/build +++ b/hooks/build @@ -1,6 +1,6 @@ #!/bin/sh VCS_REF=$(git rev-parse --short HEAD) -VCS_VERSION=$(git describe) +VCS_VERSION=$(git describe --tags --contains --always) docker build \ --build-arg VCS_REF="$VCS_REF" \