From 1e16f5efc86e8ea62619325545dbf5bdf1800265 Mon Sep 17 00:00:00 2001 From: bichangxiong <3057647414@qq.com> Date: Fri, 4 Jul 2025 18:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/dev.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev.yml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index c547780..8311236 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -4,10 +4,6 @@ on: [push] jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest -# env: -# HTTP_PROXY: http://192.168.1.219:7890 -# HTTPS_PROXY: http://192.168.1.219:7890 -# NO_PROXY: localhost,127.0.0.1 steps: - name: Checkout code uses: actions/checkout@v4 # 拉取代码到工作目录 @@ -17,13 +13,6 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven -# - name: Cache Maven dependencies -# uses: actions/cache@v3 -# with: -# path: ~/.m2/repository -# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} -# restore-keys: | -# ${{ runner.os }}-maven- - name: Set up Maven uses: stCarolas/setup-maven@v5 with: @@ -32,13 +21,7 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} -# - name: Set up JDK -# uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: 'temurin' -# - name: Build with Maven -# run: mvn clean package + - name: Install dependencies run: mvn clean package -DskipTests - name: copy file via ssh password @@ -48,17 +31,17 @@ jobs: username: root password: by@2025! port: 22 - source: "RuoYi-Cloud-Plus/ruoyi-modules/Property/target/Property.jar,RuoYi-Cloud-Plus/ruoyi-modules/Property/docker-compose.yml,Dockerfile" - target: "/home/runner/plus/" + source: "SmartParks/ruoyi-modules/Property/target/Property.jar,SmartParks/ruoyi-modules/Property/docker-compose.yml,SmartParks/ruoyi-modules/Property/Dockerfile" + target: "/project/runner/plus/" - name: Deploy to server via SSH uses: appleboy/ssh-action@v0.1.7 with: host: 192.168.1.220 username: root - password: 2003moc + password: by@2025! port: 22 script: | - cd /home/runner/plus + cd /project/runner/plus/ docker-compose up -d --force-recreate