Skip to content

Commit e67cf4d

Browse files
Ignacio Van Droogenbroeckclaude
andcommitted
Fix docker-compose path to run from DEPLOY_PATH directory
- Copy docker-compose.yml to DEPLOY_PATH (/opt/services/docs.basekick.net) - Run docker compose from DEPLOY_PATH instead of parent directory - Matches basekick.net deployment structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f2e1a44 commit e67cf4d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,16 @@ jobs:
103103
run: |
104104
set -x
105105
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/
106+
scp docker-compose.yml ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}/
108107
if [ $? -ne 0 ]; then echo "Failed to copy docker-compose.yml"; exit 1; fi
109108
shell: bash
110109

111110
- name: Deploy docs with Docker Compose
112111
run: |
113112
set -x
114113
echo "Deploying docs.basekick.net (Docusaurus static site)..."
115-
DEPLOY_DIR=$(dirname ${{ secrets.DEPLOY_PATH }})
116114
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << EOF
117-
cd \$DEPLOY_DIR
115+
cd ${{ secrets.DEPLOY_PATH }}
118116
119117
# Restart docs container
120118
sudo docker compose up -d docs

0 commit comments

Comments
 (0)