From 2f0e1b19bbafb2525553ba98dd7d06bcda269bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20West=C3=B6=C3=B6?= Date: Sat, 24 Jan 2026 17:26:43 +0100 Subject: [PATCH] Fix deployment script to match Coolify Wrapper API requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: 1. Repository URL format: HTTPS → SSH - Changed from: https://git.startanaicompany.com/user/repo.git - Changed to: git@git.startanaicompany.com:user/repo.git - Reason: Coolify requires SSH format for private repo deployments 2. API field name: git_token → gitea_api_token - Changed from: "git_token": "${GITEA_API_TOKEN}" - Changed to: "gitea_api_token": "${GITEA_API_TOKEN}" - Reason: Match Coolify Wrapper API specification These changes ensure the deployment script works with the Coolify Wrapper API at apps.startanaicompany.com The wrapper will now: - Accept the SSH Git URL format - Properly receive the Gitea API token - Set up deploy keys and webhooks automatically --- deploy-to-apps.example.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy-to-apps.example.sh b/deploy-to-apps.example.sh index 2e1b019..25bf47c 100644 --- a/deploy-to-apps.example.sh +++ b/deploy-to-apps.example.sh @@ -80,8 +80,8 @@ fi # SAAC API configuration SAAC_API="https://apps.startanaicompany.com/api/v1" -# Repository URL (HTTPS for deployment platform to clone) -REPO_URL="https://git.startanaicompany.com/${GITEA_USERNAME}/${GITEA_REPO_NAME}.git" +# Repository URL (SSH format required by Coolify for private repos) +REPO_URL="git@git.startanaicompany.com:${GITEA_USERNAME}/${GITEA_REPO_NAME}.git" # Domain (e.g., annarecruit.startanaicompany.com or johnrecruit.startanaicompany.com) FULL_DOMAIN="${SUBDOMAIN}recruit.startanaicompany.com" @@ -106,7 +106,7 @@ APP_RESPONSE=$(curl -s -X POST "${SAAC_API}/applications" \ \"domain_suffix\": \"recruit.startanaicompany.com\", \"git_repository\": \"${REPO_URL}\", \"git_branch\": \"master\", - \"git_token\": \"${GITEA_API_TOKEN}\", + \"gitea_api_token\": \"${GITEA_API_TOKEN}\", \"template_type\": \"recruitment\", \"environment_variables\": { \"COMPANY_NAME\": \"${COMPANY_NAME}\",