ci: pass oci creds directly to helm push
This commit is contained in:
@@ -96,13 +96,6 @@ jobs:
|
||||
"${api}/releases/${release_id}/assets?name=${file_name}"
|
||||
done
|
||||
|
||||
- name: Log in to registry
|
||||
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
|
||||
run: |
|
||||
shopt -s nullglob
|
||||
@@ -112,7 +105,10 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
for chart in "${charts[@]}"; do
|
||||
helm push --plain-http "$chart" "oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
helm push --plain-http \
|
||||
--username "${{ secrets.REGISTRY_USER }}" \
|
||||
--password "${{ secrets.REGISTRY_PASS }}" \
|
||||
"$chart" "oci://registry.kloude.ir/kloude/kks-provider-plugin-charts"
|
||||
done
|
||||
|
||||
- name: Make OCI chart public
|
||||
|
||||
Reference in New Issue
Block a user