You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/10/08 13:10:02 UTC
[camel-k] branch master updated: chore(build): Auto cross-compile
operator image binary from non-Linux local OS
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new 1e2368d chore(build): Auto cross-compile operator image binary from non-Linux local OS
1e2368d is described below
commit 1e2368d6bacd6bd2ea7264279ef309fc6f92c3cf
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Mon Oct 7 16:58:00 2019 +0200
chore(build): Auto cross-compile operator image binary from non-Linux local OS
---
script/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/script/Makefile b/script/Makefile
index 9be6b22..14cd358 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -155,13 +155,21 @@ lint:
images: test
mkdir -p build/_maven_output
mkdir -p build/_output/bin
+ifneq ($(shell uname -s 2>/dev/null || echo Unknown),Linux)
+ GOOS=linux go build $(GOFLAGS) -o build/_output/bin/kamel ./cmd/kamel/*.go
+else
cp kamel build/_output/bin
+endif
operator-sdk build --image-builder docker $(IMAGE_NAME):$(VERSION)
images-dev: test package-artifacts
mkdir -p build/_maven_output
mkdir -p build/_output/bin
+ifneq ($(shell uname -s 2>/dev/null || echo Unknown),Linux)
+ GOOS=linux go build $(GOFLAGS) -o build/_output/bin/kamel ./cmd/kamel/*.go
+else
cp kamel build/_output/bin
+endif
operator-sdk build --image-builder docker $(IMAGE_NAME):$(VERSION)
images-push: