This commit is contained in:
4
.github/workflows/publish-charts.yml
vendored
4
.github/workflows/publish-charts.yml
vendored
@@ -66,7 +66,7 @@ jobs:
|
||||
if [ -n "$HELM_REGISTRY_TOKEN" ]; then
|
||||
echo "Publishing $CHART_FILE to registry..."
|
||||
|
||||
HTTP_CODE=$(curl -w "%{http_code}" -s -o /dev/null \
|
||||
HTTP_CODE=$(curl -k -w "%{http_code}" -s -o /dev/null \
|
||||
-H "Authorization: token $HELM_REGISTRY_TOKEN" \
|
||||
-X POST \
|
||||
--upload-file "$CHART_FILE" \
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
echo "🔍 Verifying publication..."
|
||||
sleep 5
|
||||
|
||||
if curl -s -H "Authorization: token $HELM_REGISTRY_TOKEN" \
|
||||
if curl -k -s -H "Authorization: token $HELM_REGISTRY_TOKEN" \
|
||||
"$GITEA_URL/api/packages/$GITEA_OWNER/helm/index.yaml" \
|
||||
| grep -q "$NAME-$VERSION"; then
|
||||
echo "✅ Chart $CHART_NAME verified in registry!"
|
||||
|
||||
Reference in New Issue
Block a user