Skip to content

Commit aad9436

Browse files
authored
Add s390x support for puller and loader binaries (#1645)
1 parent dc6679e commit aad9436

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

container/go/cloudbuild.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,38 @@ steps:
9393
- "gs://rules_docker/$COMMIT_SHA/loader-linux-arm64"
9494
id: "push-loader-linux-arm64"
9595
waitFor: ["build-linux-arm64"]
96+
97+
# Step: build the puller and pusher release binary for Linux s390x
98+
- name: "l.gcr.io/google/bazel"
99+
args:
100+
- "build"
101+
- "--platforms=@io_bazel_rules_go//go/toolchain:linux_s390x"
102+
- "//container/go/cmd/puller:puller"
103+
- "//container/go/cmd/loader:loader"
104+
id: "build-linux-s390x"
105+
waitFor: ["push-puller-linux-arm64", "push-loader-linux-arm64"]
106+
107+
# Step: push the puller release binary for Linux s390x
108+
- name: "gcr.io/cloud-builders/gsutil"
109+
args:
110+
- "cp"
111+
- "-a"
112+
- "public-read"
113+
- "bazel-bin/container/go/cmd/puller/puller_/puller"
114+
- "gs://rules_docker/$COMMIT_SHA/puller-linux-s390x"
115+
id: "push-puller-linux-s390x"
116+
waitFor: ["build-linux-s390x"]
117+
118+
# Step: push the loader release binary for Linux s390x
119+
- name: "gcr.io/cloud-builders/gsutil"
120+
args:
121+
- "cp"
122+
- "-a"
123+
- "public-read"
124+
- "bazel-bin/container/go/cmd/loader/loader_/loader"
125+
- "gs://rules_docker/$COMMIT_SHA/loader-linux-s390x"
126+
id: "push-loader-linux-s390x"
127+
waitFor: ["build-linux-s390x"]
96128

97129
# Step: build the puller and loader release binaries for Darwin AMD64
98130
- name: "l.gcr.io/google/bazel"
@@ -102,7 +134,7 @@ steps:
102134
- "//container/go/cmd/puller:puller"
103135
- "//container/go/cmd/loader:loader"
104136
id: "build-darwin-amd64"
105-
waitFor: ["push-puller-linux-arm64", "push-loader-linux-arm64"]
137+
waitFor: ["push-puller-linux-s390x", "push-loader-linux-s390x"]
106138

107139
# Step: push the puller release binary for Darwin AMD64
108140
- name: "gcr.io/cloud-builders/gsutil"

0 commit comments

Comments
 (0)