Added CI
Some checks failed
Publish Helm Charts / build-and-publish (push) Failing after 4s

This commit is contained in:
Ultradesu
2026-02-04 14:50:35 +02:00
parent adf6cf3a77
commit 2310ad540f

View File

@@ -66,7 +66,7 @@ jobs:
if [ -n "$HELM_REGISTRY_TOKEN" ]; then if [ -n "$HELM_REGISTRY_TOKEN" ]; then
echo "Publishing $CHART_FILE to registry..." 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" \ -H "Authorization: token $HELM_REGISTRY_TOKEN" \
-X POST \ -X POST \
--upload-file "$CHART_FILE" \ --upload-file "$CHART_FILE" \
@@ -79,7 +79,7 @@ jobs:
echo "🔍 Verifying publication..." echo "🔍 Verifying publication..."
sleep 5 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" \ "$GITEA_URL/api/packages/$GITEA_OWNER/helm/index.yaml" \
| grep -q "$NAME-$VERSION"; then | grep -q "$NAME-$VERSION"; then
echo "✅ Chart $CHART_NAME verified in registry!" echo "✅ Chart $CHART_NAME verified in registry!"