You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/09/22 05:23:01 UTC
[couchdb-ci] branch main updated: Allow overriding buildx platforms on the command line
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git
The following commit(s) were added to refs/heads/main by this push:
new 53a152f Allow overriding buildx platforms on the command line
53a152f is described below
commit 53a152f481690e706ebd196e7425078e0ebca45d
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Thu Sep 22 00:35:30 2022 -0400
Allow overriding buildx platforms on the command line
Previously had to edit the build.sh file but now can pass the
list of platforms on the command line as:
```
BUILDX_PLATFORMS=... ./build.sh ...
```
The syntax is bash-only thing probably but we're explicitly using bash
so that's acceptable.
---
build.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index 197e602..4c9aaa5 100755
--- a/build.sh
+++ b/build.sh
@@ -50,7 +50,10 @@ XPLAT_BASE="debian-bullseye"
XPLAT_ARCHES="arm64v8 ppc64le"
PASSED_BUILDARGS="$buildargs"
-BUILDX_PLATFORMS="linux/amd64,linux/arm64,linux/ppc64le"
+# Allow overriding this list from the command line
+# BUILDX_PLATFORMS=foo,bar ./build.sh ...
+#
+: "${BUILDX_PLATFORMS:=linux/amd64,linux/arm64,linux/ppc64le}"
check-envs() {
buildargs=$PASSED_BUILDARGS