don't use gox for single build

This commit is contained in:
Cedric Meury 2018-04-27 11:20:18 +02:00
parent 5f9d3f818c
commit 2af039dcfc
2 changed files with 1 additions and 5 deletions

View File

@ -2,10 +2,6 @@ FROM golang:1.10.1-alpine3.7 as builder
RUN apk add --no-cache make git RUN apk add --no-cache make git
WORKDIR /go/src/github.com/roboll/helmfile/ WORKDIR /go/src/github.com/roboll/helmfile/
COPY Makefile /go/src/github.com/roboll/helmfile/Makefile
RUN make tools
COPY . /go/src/github.com/roboll/helmfile/ COPY . /go/src/github.com/roboll/helmfile/
RUN make static-linux RUN make static-linux

View File

@ -30,7 +30,7 @@ cross:
.PHONY: cross .PHONY: cross
static-linux: static-linux:
env CGO_ENABLED=0 gox -osarch="linux/amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags '-X main.Version=${TAG}' ${TARGETS} env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "dist/helmfile_linux_amd64" -ldflags '-X main.Version=${TAG}' ${TARGETS}
.PHONY: linux .PHONY: linux
clean: clean: