Skip to content

Commit c106f60

Browse files
upgraded profiler
1 parent 09eb762 commit c106f60

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,48 @@ jobs:
1212
- name: Checkout repo
1313
uses: actions/checkout@v3
1414

15+
- name: Show workspace files (sanity check)
16+
run: ls -alh
17+
1518
- name: Test SSH connection
1619
uses: appleboy/[email protected]
1720
with:
1821
host: ${{ secrets.GCE_HOST }}
19-
username: ${{ secrets.GCE_USER }}
22+
username: debian
2023
key: ${{ secrets.GCE_SSH_KEY }}
2124
script: echo "✅ SSH connection succeeded"
22-
25+
26+
- name: Ensure target directory exists
27+
uses: appleboy/[email protected]
28+
with:
29+
host: ${{ secrets.GCE_HOST }}
30+
username: debian
31+
key: ${{ secrets.GCE_SSH_KEY }}
32+
script: |
33+
mkdir -p /home/debian/src/cl-dashboard-internal
34+
chown -R debian:debian /home/debian/src/cl-dashboard-internal
2335
2436
- name: Copy files via SSH
2537
uses: appleboy/[email protected]
2638
with:
2739
host: ${{ secrets.GCE_HOST }}
28-
username: debian
40+
username: debian
2941
key: ${{ secrets.GCE_SSH_KEY }}
3042
source: "."
3143
target: "/home/debian/src/cl-dashboard-internal"
44+
debug: true # <-- Important for verbose error messages
3245

3346
- name: SSH into VM and restart container
3447
uses: appleboy/[email protected]
3548
with:
3649
host: ${{ secrets.GCE_HOST }}
37-
username: debian
50+
username: debian
3851
key: ${{ secrets.GCE_SSH_KEY }}
3952
script: |
4053
cd /home/debian/src/cl-dashboard-internal
41-
ls -al # Optional sanity check
54+
echo "📁 Directory contents:"
55+
ls -al
56+
echo "🔄 Rebuilding Docker container..."
4257
docker build --build-arg BUILD_MODE=local -t cl-dashboard-internal .
4358
docker stop cl-dashboard-internal || true
4459
docker rm cl-dashboard-internal || true

0 commit comments

Comments
 (0)