更新 .gitea/workflows/dev.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
014a157921
commit
1e16f5efc8
@ -4,10 +4,6 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4 # 拉取代码到工作目录
|
uses: actions/checkout@v4 # 拉取代码到工作目录
|
||||||
@ -17,13 +13,6 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
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
|
- name: Set up Maven
|
||||||
uses: stCarolas/setup-maven@v5
|
uses: stCarolas/setup-maven@v5
|
||||||
with:
|
with:
|
||||||
@ -32,13 +21,7 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
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
|
- name: Install dependencies
|
||||||
run: mvn clean package -DskipTests
|
run: mvn clean package -DskipTests
|
||||||
- name: copy file via ssh password
|
- name: copy file via ssh password
|
||||||
@ -48,17 +31,17 @@ jobs:
|
|||||||
username: root
|
username: root
|
||||||
password: by@2025!
|
password: by@2025!
|
||||||
port: 22
|
port: 22
|
||||||
source: "RuoYi-Cloud-Plus/ruoyi-modules/Property/target/Property.jar,RuoYi-Cloud-Plus/ruoyi-modules/Property/docker-compose.yml,Dockerfile"
|
source: "SmartParks/ruoyi-modules/Property/target/Property.jar,SmartParks/ruoyi-modules/Property/docker-compose.yml,SmartParks/ruoyi-modules/Property/Dockerfile"
|
||||||
target: "/home/runner/plus/"
|
target: "/project/runner/plus/"
|
||||||
- name: Deploy to server via SSH
|
- name: Deploy to server via SSH
|
||||||
uses: appleboy/ssh-action@v0.1.7
|
uses: appleboy/ssh-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: 192.168.1.220
|
host: 192.168.1.220
|
||||||
username: root
|
username: root
|
||||||
password: 2003moc
|
password: by@2025!
|
||||||
port: 22
|
port: 22
|
||||||
script: |
|
script: |
|
||||||
cd /home/runner/plus
|
cd /project/runner/plus/
|
||||||
docker-compose up -d --force-recreate
|
docker-compose up -d --force-recreate
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user