ci: pass oci creds directly to helm push
This commit is contained in:
@@ -142,18 +142,13 @@ jobs:
|
||||
--data-binary "@${CHART_PACKAGE}" \
|
||||
"${api}/releases/${release_id}/assets?name=${file_name}"
|
||||
|
||||
- name: Log in to registry
|
||||
if: steps.version.outputs.is_app_release == 'true'
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASS }}" | helm registry login registry.kloude.ir \
|
||||
--username "${{ secrets.REGISTRY_USER }}" \
|
||||
--password-stdin \
|
||||
--plain-http
|
||||
|
||||
- name: Push chart to OCI registry
|
||||
if: steps.version.outputs.is_app_release == 'true'
|
||||
run: |
|
||||
helm push --plain-http "$CHART_PACKAGE" "oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
helm push --plain-http \
|
||||
--username "${{ secrets.REGISTRY_USER }}" \
|
||||
--password "${{ secrets.REGISTRY_PASS }}" \
|
||||
"$CHART_PACKAGE" "oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
|
||||
- name: Make OCI chart public
|
||||
if: steps.version.outputs.is_app_release == 'true'
|
||||
|
||||
Reference in New Issue
Block a user