You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ade7a79
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ci): run dokploy install.sh as root, install version A directly via DOKPLOY_VERSION
Previous run failed with 'This script must be run as root'. install.sh also
respects DOKPLOY_VERSION and ADVERTISE_ADDR env vars, so we can install
version A directly instead of installing latest and downgrading (which
would risk B's migrations running on A's expected schema).
echo "Waiting for service to converge on ${{ matrix.pair.from }}..."
144
-
timeout 180 bash -c '
145
-
until ! docker service inspect dokploy \
146
-
--format "{{.UpdateStatus.State}}" 2>/dev/null \
147
-
| grep -q "^updating$"; do
148
-
sleep 4
149
-
done
145
+
echo "Waiting for 'dokploy' Swarm service to reach 1/1..."
146
+
timeout 240 bash -c '
150
147
until docker service ls --filter name=dokploy \
151
148
--format "{{.Name}} {{.Replicas}}" \
152
149
| grep "^dokploy " | grep -q " 1/1"; do
153
150
sleep 4
154
151
done
155
152
'
153
+
docker service ls
156
154
echo "✅ Service running on ${{ matrix.pair.from }}"
157
155
158
156
- name: Wait for Dokploy API to accept requests
159
157
run: |
160
-
timeout 120 bash -c '
158
+
timeout 180 bash -c '
161
159
until curl -sf -o /dev/null \
162
160
"http://localhost:${{ env.DOKPLOY_PORT }}"; do
163
161
sleep 3
@@ -169,23 +167,25 @@ jobs:
169
167
- name: Register first admin user
170
168
id: auth
171
169
run: |
172
-
COOKIE_JAR=$(mktemp /tmp/dokploy-cookies-XXXXXX)
170
+
COOKIE_JAR="$RUNNER_TEMP/dokploy-cookies.txt"
171
+
: > "$COOKIE_JAR"
172
+
chmod 600 "$COOKIE_JAR"
173
173
echo "cookie_jar=$COOKIE_JAR" >> "$GITHUB_OUTPUT"
174
174
175
175
# better-auth: sign-up/email (allowed only before any owner exists)
# User services should all be 1/1; check none are 0/1
307
305
FAIL=$(docker service ls --format '{{.Name}} {{.Replicas}}' | \
308
306
grep -E '^ci-' | grep -v ' 1/1' || true)
309
307
if [ -n "$FAIL" ]; then
@@ -322,7 +320,7 @@ jobs:
322
320
"${{ env.DOKPLOY_SERVICE }}"
323
321
324
322
echo "Waiting for service to converge on ${{ matrix.pair.to }}..."
325
-
timeout 180 bash -c '
323
+
timeout 240 bash -c '
326
324
until ! docker service inspect dokploy \
327
325
--format "{{.UpdateStatus.State}}" 2>/dev/null \
328
326
| grep -q "^updating$"; do
@@ -338,7 +336,7 @@ jobs:
338
336
339
337
- name: Wait for Dokploy API to respond post-upgrade
340
338
run: |
341
-
timeout 120 bash -c '
339
+
timeout 180 bash -c '
342
340
until curl -sf -o /dev/null \
343
341
"http://localhost:${{ env.DOKPLOY_PORT }}"; do
344
342
sleep 3
@@ -395,8 +393,12 @@ jobs:
395
393
echo "=== docker service ls ===" && docker service ls || true
396
394
echo "=== dokploy service tasks ===" && \
397
395
docker service ps "${{ env.DOKPLOY_SERVICE }}" --no-trunc || true
0 commit comments