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 04:38:18 UTC

[couchdb-ci] branch allow-easy-platform-override-for-buildx created (now bbaa545)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch allow-easy-platform-override-for-buildx
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git


      at bbaa545  Allow overriding buildx platforms on the command line

This branch includes the following new commits:

     new bbaa545  Allow overriding buildx platforms on the command line

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-ci] 01/01: Allow overriding buildx platforms on the command line

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch allow-easy-platform-override-for-buildx
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git

commit bbaa5452e4e29d5f78d8d549c9b136642c238e4c
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