From 8f5e4f2776ff9aacb1e0b8edcc015b9a536965c5 Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Fri, 3 Oct 2025 02:47:58 +0200 Subject: [PATCH] Add https:// protocol prefix to PACKAGES_REGISTRY URLs - vars.PACKAGES_REGISTRY contains only the domain (e.g., git.commandware.com) - Added https:// prefix to all registry URLs - Fixed curl command to properly construct the API endpoint URL --- .gitea/workflows/helm-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/helm-build.yml b/.gitea/workflows/helm-build.yml index 5e3c268..105846e 100644 --- a/.gitea/workflows/helm-build.yml +++ b/.gitea/workflows/helm-build.yml @@ -59,11 +59,11 @@ jobs: -H "Authorization: token ${{ secrets.PACKAGES_PUSH_TOKEN }}" \ -X POST \ -F "chart=@${CHART_FILE}" \ - ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm/api/charts + https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm/api/charts echo "✅ Helm chart pushed successfully to Gitea Package Registry" echo "📦 Chart: ${CHART_FILE}" - echo "🔗 Registry URL: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" + echo "🔗 Registry URL: https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" - name: Summary @@ -72,11 +72,11 @@ jobs: echo "" echo "- **Version:** ${VERSION}" echo "- **Chart:** ${CHART_FILE}" - echo "- **Registry:** ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" + echo "- **Registry:** https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" echo "" echo "### Installation" echo '```bash' - echo "helm repo add api7ee ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" + echo "helm repo add api7ee https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm" echo "helm repo update" echo "helm install my-api7ee api7ee/api7ee-demo-k8s --version ${VERSION}" echo '```'