Skip to content

Commit 2643ae0

Browse files
claudeXeoneid
authored andcommitted
fix(ci): deploy postgres/mongo instead of start
The create step was calling postgres.start / mongo.start immediately after create. In Dokploy, .start only scales an already-deployed Swarm service; on a freshly created resource the service doesn't exist yet, so the server ran 'docker service scale ci-pg-db-xxx=1' against a missing service and returned a 500 (curl -sf → exit 22 → step failure). .deploy is the mutation that actually builds and creates the Swarm service. Applications already used .deploy correctly; this aligns the databases.
1 parent f59f114 commit 2643ae0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/upgrade-integration-test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ jobs:
239239
\"dockerImage\":\"postgres:15\",\"environmentId\":\"$ENV_ID\"}")
240240
echo "postgres.create → $PG"
241241
PG_ID=$(echo "$PG" | jq -r '.result.data.json.postgresId')
242-
trpc_mut postgres.start "{\"postgresId\":\"$PG_ID\"}" > /dev/null
242+
# deploy (not start) — deploy creates the Swarm service; start only
243+
# scales an already-deployed service and 500s on a fresh resource.
244+
trpc_mut postgres.deploy "{\"postgresId\":\"$PG_ID\"}" > /dev/null
243245
echo "pg_id=$PG_ID" >> "$GITHUB_OUTPUT"
244246
245247
# --- MongoDB 7.0 ---
@@ -250,7 +252,7 @@ jobs:
250252
\"dockerImage\":\"mongo:7.0\",\"environmentId\":\"$ENV_ID\"}")
251253
echo "mongo.create → $MG"
252254
MG_ID=$(echo "$MG" | jq -r '.result.data.json.mongoId')
253-
trpc_mut mongo.start "{\"mongoId\":\"$MG_ID\"}" > /dev/null
255+
trpc_mut mongo.deploy "{\"mongoId\":\"$MG_ID\"}" > /dev/null
254256
echo "mg_id=$MG_ID" >> "$GITHUB_OUTPUT"
255257
256258
# --- Docker-image application helper ---

0 commit comments

Comments
 (0)