Skip to content

Commit f2e1a44

Browse files
Ignacio Van Droogenbroeckclaude
andcommitted
Fix deployment workflow for existing Traefik network
- Remove docker network create command (network already exists) - Add step to copy docker-compose.yml to server before deployment - Simplify deployment step to just restart docs container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f30f8a6 commit f2e1a44

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ jobs:
9999
if [ $? -ne 0 ]; then echo "File sync failed"; exit 1; fi
100100
shell: bash
101101

102+
- name: Copy docker-compose.yml to server
103+
run: |
104+
set -x
105+
echo "Copying docker-compose.yml to server..."
106+
DEPLOY_DIR=$(dirname ${{ secrets.DEPLOY_PATH }})
107+
scp docker-compose.yml ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:$DEPLOY_DIR/
108+
if [ $? -ne 0 ]; then echo "Failed to copy docker-compose.yml"; exit 1; fi
109+
shell: bash
110+
102111
- name: Deploy docs with Docker Compose
103112
run: |
104113
set -x
@@ -107,9 +116,6 @@ jobs:
107116
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << EOF
108117
cd \$DEPLOY_DIR
109118
110-
# Ensure external Docker network exists
111-
sudo docker network create traefik || true
112-
113119
# Restart docs container
114120
sudo docker compose up -d docs
115121

0 commit comments

Comments
 (0)