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}"
|
"${api}/releases/${release_id}/assets?name=${file_name}"
|
||||||
done
|
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
|
- name: Push chart to OCI registry
|
||||||
run: |
|
run: |
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
@@ -112,7 +105,10 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
for chart in "${charts[@]}"; do
|
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
|
done
|
||||||
|
|
||||||
- name: Make OCI chart public
|
- name: Make OCI chart public
|
||||||
|
|||||||
@@ -142,18 +142,13 @@ jobs:
|
|||||||
--data-binary "@${CHART_PACKAGE}" \
|
--data-binary "@${CHART_PACKAGE}" \
|
||||||
"${api}/releases/${release_id}/assets?name=${file_name}"
|
"${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
|
- name: Push chart to OCI registry
|
||||||
if: steps.version.outputs.is_app_release == 'true'
|
if: steps.version.outputs.is_app_release == 'true'
|
||||||
run: |
|
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
|
- name: Make OCI chart public
|
||||||
if: steps.version.outputs.is_app_release == 'true'
|
if: steps.version.outputs.is_app_release == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user