From 568e21e5814dc1fa9522e5ae87e8f122a30782e5 Mon Sep 17 00:00:00 2001 From: Viktor Farcic Date: Sun, 1 Dec 2019 04:42:43 +0100 Subject: [PATCH] Multi-architecture --- Dockerfile | 2 +- jenkins-x.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f96718806..fc7f70c35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM scratch EXPOSE 8080 ENTRYPOINT ["/go-demo-6"] -COPY ./bin/ / \ No newline at end of file +COPY ./bin/go-demo-6_linux /go-demo-6 diff --git a/jenkins-x.yml b/jenkins-x.yml index 4db79c8c7..02baa0a73 100755 --- a/jenkins-x.yml +++ b/jenkins-x.yml @@ -29,7 +29,17 @@ pipelineConfig: - pipeline: release # This is new stage: build - # This is new + name: make-build + steps: + - loop: + variable: GOOS + values: + - darwin + - linux + - windows + steps: + - name: build + command: CGO_ENABLED=0 GOOS=${GOOS} GOARCH=amd64 go build -o bin/go-demo-6_${GOOS} main.go release: promote: steps: