Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
docker: fix build not setting bin version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikulas committed Jul 8, 2018
1 parent 99590ac commit c886d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM golang:1.10-alpine3.7 as build

ARG VERSION

WORKDIR /go/src/github.com/Mikulas/kubectl-repl
ADD . /go/src/github.com/Mikulas/kubectl-repl/
RUN apk update && \
apk add --no-cache \
ca-certificates curl git make && \
make build && \
make build VERSION=$VERSION && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x ./kubectl

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ release:

docker:
rm kubectl-repl || true
docker build -t ${REPO}:${VERSION} .
docker build --build-arg VERSION=${VERSION} -t ${REPO}:${VERSION} .

.PHONY: docker preflight

0 comments on commit c886d51

Please sign in to comment.