Skip to content

Commit

Permalink
Add RELEASE_VERSION build-arg to the image πŸ“Ÿ
Browse files Browse the repository at this point in the history
This will allow to build release version of the image, by default the
arg is empty, making it a `dev` version.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Mar 26, 2020
1 parent 99f2b28 commit 6d29e85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/tkn-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ ARG GOLANG_VERSION=1.13.8
ARG DEBIAN_VERSION=10

FROM golang:${GOLANG_VERSION} as builder
ARG RELEASE_VERSION=
COPY . /go/src/github.com/tektoncd/cli
WORKDIR /go/src/github.com/tektoncd/cli
RUN make bin/tkn
RUN make RELEASE_VERSION=${RELEASE_VERSION} bin/tkn

FROM debian:${DEBIAN_VERSION} as tkn
COPY --from=builder /go/src/github.com/tektoncd/cli/bin/tkn /usr/bin

0 comments on commit 6d29e85

Please sign in to comment.