From 547d661038e139777e58dbdc2ab3763f1d48e057 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Fri, 17 Nov 2023 09:24:34 +0800 Subject: [PATCH] feat: change ci --- .gitea/workflows/ci.yaml | 41 +++++++++------------------------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index bcd41a8..99c706e 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Deploy App +name: Test CI on: push: @@ -6,41 +6,18 @@ on: - main jobs: - deploy: - name: Deploy to Web Server + test: + name: test speed runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - - - name: copy file via ssh password - uses: cross-the-world/scp-pipeline@master + - name: Set up Docker container + uses: addnab/docker-run-action@v3 with: - host: "110.41.155.96" - 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.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/ - - - + image: git.mamahaha.work/sangge/tpre:base + options: -v .:/app # 将当前工作目录挂载到容器中 + run: | + python speed_test.py # 执行Python脚本