mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-08 12:57:13 +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 }}
|
username: ${{ secrets.SERVER_USERNAME }}
|
||||||
password: ${{ secrets.SERVER_PASSWORD }}
|
password: ${{ secrets.SERVER_PASSWORD }}
|
||||||
source: ./continew-server/target/app/*
|
source: ./continew-server/target/app/*
|
||||||
target: /docker/continew-admin
|
target: ${{ secrets.SERVER_PATH }}/continew-admin
|
||||||
strip_components: 3
|
strip_components: 3
|
||||||
# 5、启动
|
# 5、启动
|
||||||
- name: Start
|
- name: Start
|
||||||
@@ -47,6 +47,6 @@ jobs:
|
|||||||
username: ${{ secrets.SERVER_USERNAME }}
|
username: ${{ secrets.SERVER_USERNAME }}
|
||||||
password: ${{ secrets.SERVER_PASSWORD }}
|
password: ${{ secrets.SERVER_PASSWORD }}
|
||||||
script: |
|
script: |
|
||||||
cd /docker
|
cd ${{ secrets.SERVER_PATH }}
|
||||||
docker-compose up --force-recreate --build -d continew-server
|
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