Simplify command
Thanks for pointing me to this @mlafeldt Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e68a3acc79
commit
f5902df81f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ WORKDIR /go/src/{{ .package }}
|
|||
|
||||
RUN set -ex \
|
||||
&& apk add --update git \
|
||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
&& go install -ldflags "-X main.version=$(git describe --tags --always || echo dev)"
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
|
Loading…
Reference in a new issue