mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Generate correct VCS_VERSION #1364
This commit is contained in:
parent
f69d30f62a
commit
d7c8810c65
2
Makefile
2
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
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue