하버 업로드 임시 제거
Some checks failed
PR-CI / build-test (pull_request) Failing after 4m57s

This commit is contained in:
revlis44
2025-12-05 10:54:45 +09:00
parent d796042bed
commit a1ae0d3cfa
2 changed files with 39 additions and 14 deletions

View File

@@ -7,8 +7,7 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: maven:3.9.9-eclipse-temurin-8
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -22,18 +21,33 @@ jobs:
- name: Maven Build WAR
run: mvn -B clean package -DskipTests
- name: Docker login to Harbor
run: |
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
# ------------------------------
# 🔻 Harbor 관련 기능 임시 비활성화
# ------------------------------
- name: Build Docker image
run: |
docker build -t sayit-helpdesk:latest .
# - name: Docker login to Harbor
# run: |
# echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Tag image for Harbor
run: |
docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
# - name: Build Docker image
# run: |
# 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: |
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)."