From a2e27ca5b474d91714b0575bc02e134db770fe17 Mon Sep 17 00:00:00 2001 From: revlis44 Date: Mon, 8 Dec 2025 16:02:01 +0900 Subject: [PATCH 1/5] gitea-action-runner --- .gitea/workflows/main-build.yml | 2 +- .gitea/workflows/pr-ci.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml index 6e1e5cb..bd65ffc 100644 --- a/.gitea/workflows/main-build.yml +++ b/.gitea/workflows/main-build.yml @@ -11,7 +11,7 @@ jobs: container: image: ci-maven-node:1.0 options: >- - --add-host nexus.sayinfo.co.kr:10.1.20.50 + --add-host nexus.sayinfo.co.kr:192.168.0.210 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index d30eae5..7b5a423 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -11,7 +11,9 @@ jobs: container: image: ci-maven-node:1.0 - + options: >- + --add-host nexus.sayinfo.co.kr:192.168.0.210 + steps: - name: Checkout source uses: actions/checkout@v4 -- 2.49.1 From c962cb68866ed344d7bd35e2c7d4b0e968d8b011 Mon Sep 17 00:00:00 2001 From: revlis44 Date: Mon, 8 Dec 2025 17:46:49 +0900 Subject: [PATCH 2/5] =?UTF-8?q?gitea-action-runner=20maven=20build?= =?UTF-8?q?=ED=9B=84=20harbor=20=EB=A0=88=ED=8F=AC=EC=A7=80=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EC=97=90=20war=20=EB=84=A3=EC=96=B4=EB=B3=B4=EA=B8=B0?= 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 | 13 +++------ 2 files changed, 22 insertions(+), 42 deletions(-) diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml index bd65ffc..0e8ff95 100644 --- a/.gitea/workflows/main-build.yml +++ b/.gitea/workflows/main-build.yml @@ -7,16 +7,12 @@ on: jobs: build-and-push: runs-on: ubuntu-latest - - container: - image: ci-maven-node:1.0 - options: >- - --add-host nexus.sayinfo.co.kr:192.168.0.210 + steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up Java 8 uses: actions/setup-java@v4 with: distribution: temurin @@ -25,33 +21,22 @@ jobs: - name: Maven Build WAR run: mvn -B clean package -DskipTests - # ------------------------------ - # πŸ”» Harbor κ΄€λ ¨ κΈ°λŠ₯ μž„μ‹œ λΉ„ν™œμ„±ν™” - # ------------------------------ - - # - name: Docker login to Harbor - # run: | - # echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin - - # - name: Build Docker image - # run: | - # docker build -t sayit-helpdesk:latest . - - # - name: Tag image for Harbor - # run: | - # docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest - - # - name: Push image to Harbor - # run: | - # docker push harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest - - # ------------------------------ - # 끝 (Harbor λΉ„ν™œμ„±ν™”) - # ------------------------------ - - - name: Build Docker image (local only, no push) + - name: Docker login to Harbor run: | - docker build -t sayit-helpdesk:local-test . + echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr \ + -u ${{ secrets.HARBOR_USERNAME }} --password-stdin + + - name: Build Docker image + run: | + docker build -t sayit-helpdesk:latest . + + - name: Tag image for Harbor + run: | + docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/gitea_action_runner_test/helpdesk-service:latest + + - name: Push image to Harbor + run: | + docker push harbor.sayinfo.co.kr/gitea_action_runner_test/helpdesk-service:latest - name: Done - run: echo "Main branch build completed (Harbor push disabled)." + run: echo "Main branch build + Harbor push completed." diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index 7b5a423..b8afe47 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -2,23 +2,18 @@ name: PR-CI on: pull_request: - types: [opened, synchronize] # PR 생성 + 컀밋 push λ•Œλ§Œ μ‹€ν–‰ + types: [opened, synchronize] branches: ["master"] jobs: build-test: runs-on: ubuntu-latest - container: - image: ci-maven-node:1.0 - options: >- - --add-host nexus.sayinfo.co.kr:192.168.0.210 - steps: - - name: Checkout source + - name: Checkout uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up Java 8 uses: actions/setup-java@v4 with: distribution: temurin @@ -32,5 +27,5 @@ jobs: restore-keys: | m2-${{ runner.os }}- - - name: Maven Build (compile + dependency check) + - name: Maven Build run: mvn -B clean package -DskipTests -- 2.49.1 From c5d98f06e1cfc36435ca2cde0f93d99fb0b56d27 Mon Sep 17 00:00:00 2001 From: revlis44 Date: Tue, 9 Dec 2025 11:19:38 +0900 Subject: [PATCH 3/5] runner --- .gitea/workflows/main-build.yml | 2 +- .gitea/workflows/pr-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml index 0e8ff95..9b53389 100644 --- a/.gitea/workflows/main-build.yml +++ b/.gitea/workflows/main-build.yml @@ -2,7 +2,7 @@ name: Main-Build on: push: - branches: ["master"] + branches: ["master"] jobs: build-and-push: diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index b8afe47..b7cdb64 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -3,7 +3,7 @@ name: PR-CI on: pull_request: types: [opened, synchronize] - branches: ["master"] + branches: ["master"] jobs: build-test: -- 2.49.1 From e299c2fad69ea7804ac2e21e724da30d4970f8aa Mon Sep 17 00:00:00 2001 From: revlis44 Date: Tue, 9 Dec 2025 11:22:44 +0900 Subject: [PATCH 4/5] runner --- .gitea/workflows/main-build.yml | 2 +- .gitea/workflows/pr-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml index 9b53389..0e8ff95 100644 --- a/.gitea/workflows/main-build.yml +++ b/.gitea/workflows/main-build.yml @@ -2,7 +2,7 @@ name: Main-Build on: push: - branches: ["master"] + branches: ["master"] jobs: build-and-push: diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index b7cdb64..b8afe47 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -3,7 +3,7 @@ name: PR-CI on: pull_request: types: [opened, synchronize] - branches: ["master"] + branches: ["master"] jobs: build-test: -- 2.49.1 From dd2f85f1531688c20f9d3192774d95d835b54747 Mon Sep 17 00:00:00 2001 From: revlis44 Date: Tue, 9 Dec 2025 11:55:18 +0900 Subject: [PATCH 5/5] d --- .gitea/workflows/main-build.yml | 2 +- .gitea/workflows/pr-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main-build.yml b/.gitea/workflows/main-build.yml index 0e8ff95..9b53389 100644 --- a/.gitea/workflows/main-build.yml +++ b/.gitea/workflows/main-build.yml @@ -2,7 +2,7 @@ name: Main-Build on: push: - branches: ["master"] + branches: ["master"] jobs: build-and-push: diff --git a/.gitea/workflows/pr-ci.yml b/.gitea/workflows/pr-ci.yml index b8afe47..b7cdb64 100644 --- a/.gitea/workflows/pr-ci.yml +++ b/.gitea/workflows/pr-ci.yml @@ -3,7 +3,7 @@ name: PR-CI on: pull_request: types: [opened, synchronize] - branches: ["master"] + branches: ["master"] jobs: build-test: -- 2.49.1