Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/smoke-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
persist-credentials: false
submodules: recursive

- name: Package, Publish, and Sign Helm Chart
- name: Package, Publish, and Sign Helm Chart (oci.stackable.tech)
uses: ./publish-helm-chart
with:
chart-registry-uri: oci.stackable.tech
Expand All @@ -129,6 +129,17 @@ jobs:
chart-version: ${{ matrix.versions }}
app-version: ${{ matrix.versions }}

- name: Package, Publish, and Sign Helm Chart (quay.io)
uses: ./publish-helm-chart
with:
chart-registry-uri: quay.io
chart-registry-username: stackable+robot_sdp_charts_github_action_build
chart-registry-password: ${{ secrets.QUAY_ROBOT_SDP_CHARTS_GITHUB_ACTION_BUILD_SECRET }}
chart-repository: stackable/smoke
chart-directory: smoke/helm-chart
chart-version: ${{ matrix.versions }}
app-version: ${{ matrix.versions }}

notify:
name: Failure Notification
needs:
Expand Down
9 changes: 9 additions & 0 deletions publish-helm-chart/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,16 @@ runs:
# Capture the stdout output to extract the digest. It is sad that Helm doesn't provide
# structured output, eg. in JSON. There is a 2-year old open issue about it:
# https://github.com/helm/helm/issues/11735
# Helm outputs the digest on STDERR, for whatever ridiculous reason. Like, who makes these
# decisions?
set +e
HELM_OUTPUT=$(helm push "$CHART_ARTIFACT" "oci://${CHART_REGISTRY_URI}/${CHART_REPOSITORY}" 2>&1)
if [ $? -ne 0 ]; then
echo "Helm push command failed"
echo "$HELM_OUTPUT"
exit 1
fi
set -e

# Yuck
CHART_DIGEST=$(echo "$HELM_OUTPUT" | awk '/^Digest: sha256:[0-9a-f]{64}$/ { print $2 }')
Expand Down
Loading