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 46a78e1 commit d5d4c78
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
ls
- name: 推送到备份服务器
uses: SamKirkland/[email protected]
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
env:
LASTSSH: "Doing something after copying"
with:
local-dir: ./
server: ${{ secrets.SERVER_SERVER }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
remote-dir: /opt/app/zip/
exclude: |
.git
node_modules
.gitignore
.env
host: ${{ secrets.SERVER_HOST }}
user: ${{ secrets.SERVER_USER}}
pass: ${{ secrets.SERVER_PASSWORD }}
scp: |
./code.zip => /path/on/server/code.zip
last_ssh: |
echo $LASTSSH
# 执行其他命令,例如解压 ZIP 文件和重启服务
- name: 打印作业状态 🍏
run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit d5d4c78

Please sign in to comment.