Skip to content

Commit

Permalink
publish workflow: build amd64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Apr 12, 2021
1 parent 1eac93c commit 6508e1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/publish
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 6508e1a

Please sign in to comment.