diff --git a/ci/publish b/ci/publish index 996395d64f..a2b7482090 100755 --- a/ci/publish +++ b/ci/publish @@ -6,6 +6,11 @@ # Exit on errors, assert env vars, log commands set -eux +PUBLISH_ARGS="--push --publish-chart \ + --builder docker-buildx \ + --platform linux/amd64 --platform linux/arm64 \ + " + # chartpress use git to push to our Helm chart repository, which is the gh-pages # branch of jupyterhub/helm-chart. We have installed a private SSH key within # the ~/.ssh folder with permissions to push to jupyterhub/helm-chart. @@ -26,11 +31,11 @@ if [[ $GITHUB_REF != refs/tags/* ]]; then PR_OR_HASH=$(git log -1 --pretty=%h-%B | head -n1 | sed 's/^.*\(#[0-9]*\).*/\1/' | sed 's/^\([0-9a-f]*\)-.*/@\1/') LATEST_COMMIT_TITLE=$(git log -1 --pretty=%B | head -n1) EXTRA_MESSAGE="${GITHUB_REPOSITORY}${PR_OR_HASH} ${LATEST_COMMIT_TITLE}" - chartpress --push --publish-chart --extra-message "${EXTRA_MESSAGE}" + chartpress $PUBLISH_ARGS --extra-message "${EXTRA_MESSAGE}" else # Setting a tag explicitly enforces a rebuild if this tag had already been # built and we wanted to override it. - chartpress --push --publish-chart --tag "${GITHUB_REF:10}" + chartpress $PUBLISH_ARGS --tag "${GITHUB_REF:10}" fi # Let us log the changes chartpress did, it should include replacements for