From fc8e1e02e864a2074fae6d286fa98840136c9923 Mon Sep 17 00:00:00 2001 From: revlis44 Date: Wed, 3 Dec 2025 16:10:14 +0900 Subject: [PATCH] =?UTF-8?q?git=20action=20PR=EC=83=9D=EC=84=B1=EC=8B=9C=20?= =?UTF-8?q?=EB=A9=94=EC=9D=B4=EB=B8=90=20=EC=BB=B4=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EB=B0=8F=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=B2=B4=ED=81=AC=20=EB=A9=94=EC=9D=B8=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=EC=97=90=20=EB=B3=91=ED=95=A9=EC=8B=9C=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C=20=EB=B0=8F=20war=EB=A5=BC=20=EA=B9=83=ED=8B=B0?= =?UTF-8?q?=EC=99=80=20=EB=84=A5=EC=84=9C=EC=8A=A4=20=EB=A0=88=ED=8F=AC?= =?UTF-8?q?=EC=A7=80=ED=86=A0=EB=A6=AC=EC=97=90=20=EC=97=85=EB=A1=9C?= =?UTF-8?q?=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main-build.yml | 51 +++++++++++++++++++++++++++++++++ .gitea/workflows/pr-ci.yml | 30 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 .gitea/workflows/main-build.yml create mode 100644 .gitea/workflows/pr-ci.yml diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml new file mode 100644 index 0000000..329aa96 --- /dev/null +++ b/.gitea/workflows/main-build.yml @@ -0,0 +1,51 @@ +name: Master-Build + +on: + push: + branches: ["master"] + +jobs: + build-war: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "8" + + - name: Cache Maven repo + uses: actions/cache@v4 + with: + path: ~/.m2 + key: m2-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} + restore-keys: | + m2-${{ runner.os }}- + + - name: Configure Maven Settings for Nexus + run: | + mkdir -p ~/.m2 + cat > ~/.m2/settings.xml < + + + nexus + ${{ secrets.NEXUS_USERNAME }} + ${{ secrets.NEXUS_PASSWORD }} + + + + EOF + + - name: Maven deploy (WAR to Nexus) + run: mvn -B clean deploy -DskipTests + + - name: Upload WAR artifact (optional) + uses: actions/upload-artifact@v4 + with: + name: sayit-helpdesk-war + path: target/sayit.helpdesk.war diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml new file mode 100644 index 0000000..2d1ee59 --- /dev/null +++ b/.gitea/workflows/pr-ci.yml @@ -0,0 +1,30 @@ +name: PR-CI + +on: + pull_request: + branches: ["master"] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "8" + + - name: Cache Maven repo + uses: actions/cache@v4 + with: + path: ~/.m2 + key: m2-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} + restore-keys: | + m2-${{ runner.os }}- + + - name: Maven Build (compile + dependency check) + run: mvn -B clean package -DskipTests -- 2.49.1