This commit is contained in:
@@ -7,8 +7,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: maven:3.9.9-eclipse-temurin-8
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,18 +21,33 @@ jobs:
|
|||||||
- name: Maven Build WAR
|
- name: Maven Build WAR
|
||||||
run: mvn -B clean package -DskipTests
|
run: mvn -B clean package -DskipTests
|
||||||
|
|
||||||
- name: Docker login to Harbor
|
# ------------------------------
|
||||||
run: |
|
# 🔻 Harbor 관련 기능 임시 비활성화
|
||||||
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
|
# ------------------------------
|
||||||
|
|
||||||
- name: Build Docker image
|
# - name: Docker login to Harbor
|
||||||
run: |
|
# run: |
|
||||||
docker build -t sayit-helpdesk:latest .
|
# echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
|
||||||
|
|
||||||
- name: Tag image for Harbor
|
# - name: Build Docker image
|
||||||
run: |
|
# run: |
|
||||||
docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
|
# docker build -t sayit-helpdesk:latest .
|
||||||
|
|
||||||
- name: Push image to Harbor
|
# - 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)
|
||||||
run: |
|
run: |
|
||||||
docker push harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
|
docker build -t sayit-helpdesk:local-test .
|
||||||
|
|
||||||
|
- name: Done
|
||||||
|
run: echo "Main branch build completed (Harbor push disabled)."
|
||||||
|
|||||||
@@ -6,11 +6,22 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
runs-on: ubuntu-latest # gitea-runner LABEL 이름
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Dockerfile로 만든 Maven+Docker client 이미지 사용
|
||||||
|
container:
|
||||||
|
image: ci-maven-node:1.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up JDK 8
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: "8"
|
||||||
|
|
||||||
- name: Cache Maven repo
|
- name: Cache Maven repo
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user