From a8e6d030896d8f005a2e2d05dc975a5d23707f44 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:09:21 +0000 Subject: [PATCH 1/2] Initial plan From 405896c0828d214b3ceac29cb9e6256101136789 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:14:55 +0000 Subject: [PATCH 2/2] fix: correct Docker image URLs in deploy_server.sh and improve error handling - Fix image URLs from ghcr.io/polarsource/polar to ghcr.io/exzosverse-os/exzos-pay - Fix playwright image URL from ghcr.io/polarsource/polar-playwright to ghcr.io/exzosverse-os/exzos-pay-playwright - Add early validation for empty RENDER_API_TOKEN - Include HTTP status code in deployment failure error messages Co-authored-by: exzosverse-os <248856943+exzosverse-os@users.noreply.github.com> --- .github/workflows/deploy_server.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_server.sh b/.github/workflows/deploy_server.sh index f8ecf7e9ec..9b5b43b72a 100755 --- a/.github/workflows/deploy_server.sh +++ b/.github/workflows/deploy_server.sh @@ -9,7 +9,12 @@ if [ $# -lt 4 ]; then exit 1 fi -IMG="ghcr.io/polarsource/polar@${1}" +if [[ -z "${RENDER_API_TOKEN:-}" ]]; then + echo "❌ RENDER_API_TOKEN is not set or is empty. Cannot deploy to Render." + exit 1 +fi + +IMG="ghcr.io/exzosverse-os/exzos-pay@${1}" HAS_MIGRATIONS="${2}" API_SERVICE_ID="${3}" WORKER_SERVICE_IDS="${4}" @@ -54,19 +59,23 @@ deploy_servers() { echo " Triggering deployment for ${server_id}..." # Use API to get deploy ID - deploy_response=$(curl -s -X POST \ + local http_code + deploy_response=$(curl -s -w "\n%{http_code}" -X POST \ -H "Accept: application/json" \ -H "Authorization: Bearer ${RENDER_API_TOKEN}" \ -H "Content-Type: application/json" \ -d "{\"imageUrl\":\"${img}\"}" \ "https://api.render.com/v1/services/${server_id}/deploys") + http_code=$(echo "$deploy_response" | tail -1) + deploy_response=$(echo "$deploy_response" | sed '$d') + deploy_id=$(echo "$deploy_response" | jq -r '.id' 2>/dev/null) if [[ "$deploy_id" != "null" && -n "$deploy_id" ]]; then deploy_map["$server_id"]="$deploy_id" echo " Deploy ID: ${deploy_id}" else - echo " ❌ Failed to trigger deployment for ${server_id}" + echo " ❌ Failed to trigger deployment for ${server_id} (HTTP ${http_code})" echo " Response: ${deploy_response}" exit 1 fi @@ -132,7 +141,7 @@ PLAYWRIGHT_WORKER_IDS="${6:-}" PLAYWRIGHT_SERVERS=() PLAYWRIGHT_IMG="" if [[ -n "$PLAYWRIGHT_DIGEST" && -n "$PLAYWRIGHT_WORKER_IDS" ]]; then - PLAYWRIGHT_IMG="ghcr.io/polarsource/polar-playwright@${PLAYWRIGHT_DIGEST}" + PLAYWRIGHT_IMG="ghcr.io/exzosverse-os/exzos-pay-playwright@${PLAYWRIGHT_DIGEST}" IFS=',' read -ra PLAYWRIGHT_SERVERS <<< "$PLAYWRIGHT_WORKER_IDS" fi