mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-07 10:57:11 +08:00
ci: 更新 CI 部署脚本
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
username: ${{ secrets.SERVER_USERNAME }}
|
||||
password: ${{ secrets.SERVER_PASSWORD }}
|
||||
source: ./continew-server/target/app/*
|
||||
target: /docker/continew-admin
|
||||
target: ${{ secrets.SERVER_PATH }}/continew-admin
|
||||
strip_components: 3
|
||||
# 5、启动
|
||||
- name: Start
|
||||
@@ -47,6 +47,6 @@ jobs:
|
||||
username: ${{ secrets.SERVER_USERNAME }}
|
||||
password: ${{ secrets.SERVER_PASSWORD }}
|
||||
script: |
|
||||
cd /docker
|
||||
cd ${{ secrets.SERVER_PATH }}
|
||||
docker-compose up --force-recreate --build -d continew-server
|
||||
docker images | grep none | awk '{print $3}' | xargs docker rmi
|
||||
docker images | grep none | awk '{print $3}' | xargs -r docker rmi
|
||||
|
Reference in New Issue
Block a user