mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 09:51:55 +02:00
don't use gox for single build
This commit is contained in:
@@ -2,10 +2,6 @@ FROM golang:1.10.1-alpine3.7 as builder
|
||||
|
||||
RUN apk add --no-cache make git
|
||||
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/
|
||||
RUN make static-linux
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ cross:
|
||||
.PHONY: cross
|
||||
|
||||
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
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user