Skip to content

Commit 7f12743

Browse files
committed
fix(ci): nightly multi arch
1 parent f5e7ddf commit 7f12743

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/nightly-multi.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ jobs:
5151
- name: Install operator
5252
shell: bash
5353
run: |
54+
THIS_VERSION="$(make get-version)"
55+
VERSION="$(make get-version | sed s/-SNAPSHOT//)-nightly"
56+
sed "s#apache/camel-k:$THIS_VERSION#testcamelk/camel-k:$VERSION#g" install/base/config/manager/operator-deployment.yaml
5457
kubectl create ns camel-k
5558
make install-k8s-global
56-
kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n camel-k --timeout=180s
59+
kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n camel-k --timeout=120s
5760
5861
- name: Run test
5962
shell: bash

e2e/common/runtimes/runtimes_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ package common
2424

2525
import (
2626
"context"
27+
"runtime"
28+
"strings"
2729
"testing"
2830

2931
. "github.com/onsi/gomega"
@@ -35,6 +37,10 @@ import (
3537
)
3638

3739
func TestSelfManagedBuildIntegrations(t *testing.T) {
40+
if !isAmd() {
41+
t.Skip("This test can only run in an AMD based architecture.")
42+
}
43+
3844
t.Parallel()
3945
WithNewTestNamespace(t, func(ctx context.Context, g *WithT, ns string) {
4046
var cmData = make(map[string]string)
@@ -72,3 +78,7 @@ func TestSelfManagedBuildIntegrations(t *testing.T) {
7278
})
7379
})
7480
}
81+
82+
func isAmd() bool {
83+
return strings.Contains(runtime.GOARCH, "amd")
84+
}

0 commit comments

Comments
 (0)