Skip to content

Commit

Permalink
adding a version timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Alajrami committed Feb 23, 2018
1 parent fa82a3d commit af76689
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dockerfile/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ RUN git clone https://github.com/Praqma/helmsman.git
RUN go get github.com/Praqma/helmsman/gcs
RUN go get github.com/Praqma/helmsman/aws
# build a statically linked binary so that it works on stripped linux images such as alpine/busybox.
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' helmsman/.
RUN cd helmsman \
&& TAG=$(git describe --abbrev=0 --tags)-$(date +"%s") \
&& CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-X main.version='$TAG' -extldflags "-static"' .

FROM alpine:3.6 as kube
ENV KUBE_LATEST_VERSION="v1.8.2"
Expand Down

0 comments on commit af76689

Please sign in to comment.