We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94a6945 + 1ce74ba commit c6c9fedCopy full SHA for c6c9fed
hack/common.sh
@@ -28,14 +28,15 @@ readonly S2I_GO_PACKAGE=github.com/openshift/source-to-image
28
readonly S2I_GOPATH="${S2I_OUTPUT}/go"
29
30
readonly S2I_CROSS_COMPILE_PLATFORMS=(
31
- linux/amd64
32
darwin/amd64
33
- windows/amd64
+ darwin/arm64
34
linux/386
+ linux/amd64
35
+ linux/arm64
36
linux/ppc64le
37
linux/s390x
- linux/arm64
38
- darwin/arm64
+ windows/amd64
39
+ windows/arm64
40
)
41
readonly S2I_CROSS_COMPILE_TARGETS=(
42
cmd/s2i
@@ -268,7 +269,7 @@ s2i::build::place_bins() {
268
269
local -a binaries=()
270
for binary in "${targets[@]}"; do
271
binary=$(basename $binary)
- if [[ $platform == "windows/amd64" ]]; then
272
+ if [[ $platform =~ ^windows ]]; then
273
binaries+=("${binary}.exe")
274
else
275
binaries+=("${binary}")
0 commit comments