Skip to content

Commit

Permalink
feat: 排查错误,文件夹文件删除了
Browse files Browse the repository at this point in the history
  • Loading branch information
devil committed Aug 2, 2024
1 parent 13ae039 commit 67f94f4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ jobs:
- name: 查看 zip 文件 📦
run: ls

# - name: 清空之前的旧文件夹
# uses: easingthemes/[email protected]
# with:
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# REMOTE_USER: ${{ secrets.DEV_SERVER_USER }}
# REMOTE_HOST: ${{ secrets.DEV_SERVER_HOST }}
# REMOTE_PORT: 22
# SCRIPT_AFTER: |
# cd /opt/app/test
# rm -rf * # 删除目录下所有文件和子目录
- name: 清空之前的旧文件夹
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_USER: ${{ secrets.DEV_SERVER_USER }}
REMOTE_HOST: ${{ secrets.DEV_SERVER_HOST }}
REMOTE_PORT: 22
SCRIPT_AFTER: |
cd /opt/app/test
rm -rf * # 删除目录下所有文件和子目录
- name: 打包代码成 ZIP 文件 📦
id: deploy
Expand Down Expand Up @@ -126,6 +126,8 @@ jobs:
SCRIPT_AFTER: |
cd /opt/app/test
unzip publish.zip
docker-compose -f docker-compose.env.yml up -d
docker-compose -f docker-compose.service.yml up -d
- name: 打印作业状态 🍏
run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit 67f94f4

Please sign in to comment.