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