Fix deployment script to match Coolify Wrapper API requirements
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
This commit is contained in:
@@ -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}\",
|
||||
|
||||
Reference in New Issue
Block a user