forked from sangge/tpre-python
feat: change ci
This commit is contained in:
parent
4020213ff4
commit
547d661038
@ -1,4 +1,4 @@
|
|||||||
name: Deploy App
|
name: Test CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,41 +6,18 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
test:
|
||||||
name: Deploy to Web Server
|
name: test speed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker container
|
||||||
- name: copy file via ssh password
|
uses: addnab/docker-run-action@v3
|
||||||
uses: cross-the-world/scp-pipeline@master
|
|
||||||
with:
|
with:
|
||||||
host: "110.41.155.96"
|
image: git.mamahaha.work/sangge/tpre:base
|
||||||
user: ${{ secrets.USERNAME }}
|
options: -v .:/app # 将当前工作目录挂载到容器中
|
||||||
pass: ${{ secrets.PASSWORD }}
|
run: |
|
||||||
local: "src/*"
|
python speed_test.py # 执行Python脚本
|
||||||
remote: /root/mimajingsai/src/
|
|
||||||
|
|
||||||
- name: copy file via ssh password
|
|
||||||
uses: cross-the-world/scp-pipeline@master
|
|
||||||
with:
|
|
||||||
host: "110.41.130.197"
|
|
||||||
user: ${{ secrets.USERNAME }}
|
|
||||||
pass: ${{ secrets.PASSWORD }}
|
|
||||||
local: "src/*"
|
|
||||||
remote: /root/mimajingsai/src/
|
|
||||||
|
|
||||||
- name: copy file via ssh password
|
|
||||||
uses: cross-the-world/scp-pipeline@master
|
|
||||||
with:
|
|
||||||
host: "110.41.21.35"
|
|
||||||
user: ${{ secrets.USERNAME }}
|
|
||||||
pass: ${{ secrets.PASSWORD }}
|
|
||||||
local: "src/*"
|
|
||||||
remote: /root/mimajingsai/src/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user