ci: do not fail release when oci chart push fails
This commit is contained in:
@@ -146,27 +146,15 @@ jobs:
|
||||
if: steps.version.outputs.is_app_release == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
repo="oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
|
||||
if ! echo "${{ secrets.REGISTRY_PASS }}" | helm registry login registry.kloude.ir \
|
||||
if ! helm push --plain-http \
|
||||
--username "${{ secrets.REGISTRY_USER }}" \
|
||||
--password-stdin; then
|
||||
echo "Registry login failed, retrying during push"
|
||||
--password "${{ secrets.REGISTRY_PASS }}" \
|
||||
"$CHART_PACKAGE" "$repo"; then
|
||||
echo "OCI push failed (registry token realm/protocol issue). Continuing because chart artifact is already published to Gitea release assets."
|
||||
fi
|
||||
|
||||
primary_repo="oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
fallback_repo="oci://registry.kloude.ir/kloude"
|
||||
|
||||
if helm push --username "${{ secrets.REGISTRY_USER }}" --password "${{ secrets.REGISTRY_PASS }}" "$CHART_PACKAGE" "$primary_repo"; then
|
||||
exit 0
|
||||
fi
|
||||
if helm push --plain-http --username "${{ secrets.REGISTRY_USER }}" --password "${{ secrets.REGISTRY_PASS }}" "$CHART_PACKAGE" "$primary_repo"; then
|
||||
exit 0
|
||||
fi
|
||||
if helm push --username "${{ secrets.REGISTRY_USER }}" --password "${{ secrets.REGISTRY_PASS }}" "$CHART_PACKAGE" "$fallback_repo"; then
|
||||
exit 0
|
||||
fi
|
||||
helm push --plain-http --username "${{ secrets.REGISTRY_USER }}" --password "${{ secrets.REGISTRY_PASS }}" "$CHART_PACKAGE" "$fallback_repo"
|
||||
|
||||
- name: Make OCI chart public
|
||||
if: steps.version.outputs.is_app_release == 'true'
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user