don't use gox for single build
This commit is contained in:
parent
5f9d3f818c
commit
2af039dcfc
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue