Compare commits
5 Commits
441754d72c
...
feature/gi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd2f85f153 | ||
|
|
e299c2fad6 | ||
|
|
c5d98f06e1 | ||
|
|
c962cb6886 | ||
|
|
a2e27ca5b4 |
@@ -8,15 +8,11 @@ jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: ci-maven-node:1.0
|
||||
options: >-
|
||||
--add-host nexus.sayinfo.co.kr:10.1.20.50
|
||||
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."
|
||||
|
||||
@@ -2,21 +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
|
||||
|
||||
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
|
||||
@@ -30,5 +27,5 @@ jobs:
|
||||
restore-keys: |
|
||||
m2-${{ runner.os }}-
|
||||
|
||||
- name: Maven Build (compile + dependency check)
|
||||
- name: Maven Build
|
||||
run: mvn -B clean package -DskipTests
|
||||
|
||||
Reference in New Issue
Block a user