Skip to content

Commit d88c9a3

Browse files
author
xujie
committed
fix: update actions
1 parent 95f37ff commit d88c9a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838

3939
- name: Copy files to server
4040
run: |
41-
scp -P 2222 demo-app.tar.gz root@xujie.i234.me:/data/docker-images/
42-
scp -P 2222 docker-compose.yml root@xujie.i234.me:/data/projects/spring-boot-template/
43-
scp -P 2222 backup.sh restore.sh root@xujie.i234.me:/data/projects/spring-boot-template/ && ssh -p 2222 root@xujie.i234.me "chmod +x /data/projects/spring-boot-template/{backup,restore}.sh"
41+
scp demo-app.tar.gz root@47.102.193.24:/home/docker-images/
42+
scp docker-compose.yml root@47.102.193.24:/home/projects/spring-boot-template/
43+
scp backup.sh restore.sh root@47.102.193.24:/home/projects/spring-boot-template/ && ssh root@47.102.193.24 "chmod +x /home/projects/spring-boot-template/{backup,restore}.sh"
4444
4545
- name: Load image and restart services
4646
run: |
47-
ssh -p 2222 root@xujie.i234.me << EOF
48-
cd /data/docker-images/
47+
ssh root@47.102.193.24 << EOF
48+
cd /home/docker-images/
4949
gzip -d demo-app.tar.gz
5050
docker load -i demo-app.tar
51-
cd /data/projects/spring-boot-template/
51+
cd /home/projects/spring-boot-template/
5252
docker-compose down
5353
docker-compose up -d
5454
docker image prune -f # 清理无用镜像

0 commit comments

Comments
 (0)