This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -1,15 +1,12 @@
|
|||||||
name: Remote SSH Command
|
name: Build Docker
|
||||||
on: [push]
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 执行远程 SSH 命令(密码认证)
|
- name: Checkout code
|
||||||
uses: appleboy/ssh-action@v1
|
uses: actions/checkout@v6
|
||||||
with:
|
- name: Build
|
||||||
host: ${{ secrets.HOST }}
|
run: ls -la
|
||||||
username: ${{ secrets.USERNAME }}
|
|
||||||
password: ${{ secrets.PASSWORD }}
|
|
||||||
port: ${{ secrets.PORT }}
|
|
||||||
script: whoami
|
|
||||||
|
|||||||
Reference in New Issue
Block a user