mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Merge pull request #1365 from erik-wramner/fix_vcs_version_1364
Generate correct VCS_VERSION #1364
This commit is contained in:
commit
a559631641
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
NAME = tvial/docker-mailserver:testing
|
NAME = tvial/docker-mailserver:testing
|
||||||
VCS_REF := $(shell git rev-parse --short HEAD)
|
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
|
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
|
no-build: backup generate-accounts run generate-accounts-after-run fixtures tests clean
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
VCS_REF=$(git rev-parse --short HEAD)
|
VCS_REF=$(git rev-parse --short HEAD)
|
||||||
VCS_VERSION=$(git describe)
|
VCS_VERSION=$(git describe --tags --contains --always)
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg VCS_REF="$VCS_REF" \
|
--build-arg VCS_REF="$VCS_REF" \
|
||||||
|
|
Loading…
Reference in a new issue