Skip to content

Commit 17dfca7

Browse files
JOYclaude
andcommitted
ci: Fix deploy workflow — avoid downtime from docker compose down
Replace `down --remove-orphans` + `up -d` with just `up -d --remove-orphans`. Docker Compose will only recreate containers with changed configs, avoiding unnecessary downtime for unchanged services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 984cc95 commit 17dfca7

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/deploy-config.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@ jobs:
7171
cp $SRC/envs/common-blockscout.env $DEPLOY_PATH/envs/common-blockscout.env
7272
fi
7373
74-
# Clean up orphan/conflicting containers before recreate
74+
# Recreate only services with config changes (no downtime)
7575
cd $DEPLOY_PATH
76-
sudo docker compose down --remove-orphans 2>/dev/null || true
77-
78-
# Start all services (NOT avago - runs as native systemd)
79-
sudo docker compose up -d
76+
sudo docker compose up -d --remove-orphans
8077
8178
# Cleanup
8279
rm -rf $SRC
@@ -125,8 +122,7 @@ jobs:
125122
cp $SRC/envs/common-visualizer.env $DEPLOY_PATH/envs/common-visualizer.env
126123
127124
cd $DEPLOY_PATH
128-
sudo docker compose down --remove-orphans 2>/dev/null || true
129-
sudo docker compose up -d
125+
sudo docker compose up -d --remove-orphans
130126
131127
rm -rf $SRC
132128

0 commit comments

Comments
 (0)