Skip to content

Commit

Permalink
Multi-architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Farcic committed Dec 1, 2019
1 parent 2d51570 commit 568e21e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM scratch
EXPOSE 8080
ENTRYPOINT ["/go-demo-6"]
COPY ./bin/ /
COPY ./bin/go-demo-6_linux /go-demo-6
12 changes: 11 additions & 1 deletion jenkins-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 568e21e

Please sign in to comment.