Simplify command

Thanks for pointing me to this @mlafeldt

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-02-05 15:20:48 +01:00
parent e68a3acc79
commit f5902df81f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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