From 4423678786dcb7e27741b0b2c442b621e81d1047 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Wed, 3 Jun 2020 13:02:19 +0100 Subject: [PATCH] Add the --tags arg to git describe so it sees the tags --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7de6ea1..d5a7e6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY . . RUN go mod download -RUN go build -o rove-server -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=$(git describe --always --long --dirty)'" . +RUN go build -o rove-server -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=$(git describe --always --long --dirty --tags)'" . CMD [ "./rove-server" ]