Skip to content

Commit 5b07434

Browse files
Koded0214hclaude
andcommitted
fix(ci): hardcode app dir to avoid unset GitHub variable
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1778239 commit 5b07434

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
VPS_HOST: 162.35.161.147
1111
VPS_USER: kodedlabs
12+
APP_DIR: /home/kodedlabs/somba
1213

1314
jobs:
1415
deploy:
@@ -32,7 +33,7 @@ jobs:
3233
EOF
3334
3435
- name: Ensure app directory exists
35-
run: ssh kodedlabs "mkdir -p ${{ vars.VPS_APP_DIR }}"
36+
run: ssh kodedlabs "mkdir -p ${{ env.APP_DIR }}"
3637

3738
- name: Sync app to VPS
3839
run: |
@@ -42,8 +43,8 @@ jobs:
4243
--exclude '__pycache__' \
4344
--exclude '.venv' \
4445
./ \
45-
kodedlabs:${{ vars.VPS_APP_DIR }}
46+
kodedlabs:${{ env.APP_DIR }}
4647
4748
- name: Restart service
4849
run: |
49-
ssh kodedlabs "cd '${{ vars.VPS_APP_DIR }}' && docker compose up -d --build app"
50+
ssh kodedlabs "cd '${{ env.APP_DIR }}' && docker compose up -d --build app"

0 commit comments

Comments
 (0)