From bb1958e36174457827677c52469987b2d13147d5 Mon Sep 17 00:00:00 2001 From: yinxiaolong Date: Thu, 18 Jun 2026 19:00:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=8F=8ADockerfile=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65c61e8..12bd4da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,16 +1,15 @@ -name: Build Docker - -on: [push, pull_request] - +name: Remote SSH Command +on: [push] jobs: build: + name: Build runs-on: ubuntu-latest steps: - - name: Set git proxy - run: | - git config --global http.proxy http://10.255.0.1:7890 - git config --global https.proxy http://10.255.0.1:7890 - - name: Checkout code - uses: actions/checkout@v4 - - name: Build - run: ls -la \ No newline at end of file + - name: 执行远程 SSH 命令(密码认证) + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami \ No newline at end of file