Add the --tags arg to git describe so it sees the tags
This commit is contained in:
parent
b9d5a54741
commit
4423678786
1 changed files with 1 additions and 1 deletions
|
@ -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" ]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue