@@ -12,33 +12,48 @@ jobs:
12
12
- name : Checkout repo
13
13
uses : actions/checkout@v3
14
14
15
+ - name : Show workspace files (sanity check)
16
+ run : ls -alh
17
+
15
18
- name : Test SSH connection
16
19
17
20
with :
18
21
host : ${{ secrets.GCE_HOST }}
19
- username : ${{ secrets.GCE_USER }}
22
+ username : debian
20
23
key : ${{ secrets.GCE_SSH_KEY }}
21
24
script : echo "✅ SSH connection succeeded"
22
-
25
+
26
+ - name : Ensure target directory exists
27
+
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
23
35
24
36
- name : Copy files via SSH
25
37
26
38
with :
27
39
host : ${{ secrets.GCE_HOST }}
28
- username : debian
40
+ username : debian
29
41
key : ${{ secrets.GCE_SSH_KEY }}
30
42
source : " ."
31
43
target : " /home/debian/src/cl-dashboard-internal"
44
+ debug : true # <-- Important for verbose error messages
32
45
33
46
- name : SSH into VM and restart container
34
47
35
48
with :
36
49
host : ${{ secrets.GCE_HOST }}
37
- username : debian
50
+ username : debian
38
51
key : ${{ secrets.GCE_SSH_KEY }}
39
52
script : |
40
53
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..."
42
57
docker build --build-arg BUILD_MODE=local -t cl-dashboard-internal .
43
58
docker stop cl-dashboard-internal || true
44
59
docker rm cl-dashboard-internal || true
0 commit comments