From 3e5941537f2d6e1dd5e1b7aeb28c44f73fe7b854 Mon Sep 17 00:00:00 2001 From: jade Date: Tue, 4 Aug 2026 22:38:21 +0900 Subject: [PATCH] Remove Gitea runner configurations and cache --- .gitea/workflows/deploy.yml | 67 ------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index dcab1eb5d..000000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Deploy to OCIWP - -on: - push: - branches: - - main - - master - workflow_dispatch: - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - - name: Prepare Environment (Install Node.js & Git & Java 21) - run: | - if command -v apt-get &> /dev/null; then - apt-get update - apt-get install -y nodejs git openjdk-21-jdk rsync - elif command -v apk &> /dev/null; then - apk add --no-cache nodejs git openjdk21 rsync - fi - - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Sync Code to Host Volume - run: | - echo "Copying latest code to /app (Host Volume) and removing stale files..." - if command -v rsync &> /dev/null; then - rsync -a --delete --exclude='.git' . /app/ - else - rm -rf /app/dap-* /app/src /app/build.gradle /app/settings.gradle - cp -a . /app/ - fi - - - name: Deploy Task on Host - run: | - echo "Starting Standard CI/CD Deploy pipeline..." - - # 1. runner에 설치된 java로 직접 빌드! (격리된 환경 문제 해결) - cd /app - chmod +x gradlew - ./gradlew bootJar -x test - - # 2. 빌드 결과 plain jar 아카이브 정리 - find /app -name "*-plain.jar" -delete - - # 3. 좀비 컨테이너 청소 (현재 우리가 쓸 포트를 점유 중인 옛날 컨테이너들만 정확히 색출해서 사살) - echo "Finding and killing zombie containers holding our ports..." - for port in 6379 8080 8089 8281 8282 8283 8284 8285 8288; do - cid=$(docker ps -q --filter "publish=$port") - if [ ! -z "$cid" ]; then - echo "Force killing container $cid using port $port" - docker rm -f $cid - fi - done - - # 4. 마운트된 /app 디렉토리로 이동하여 호스트의 도커 컴포즈 제어! - cd /app - docker system prune -f - ACTIVE_PROFILE=dev docker compose up -d --build --remove-orphans redis mci-mock dozzle was-sms was-oth - - # 5. 배포 후 대롱대롱 매달려 있는 가비지 이미지 자동 소거 청소! - docker image prune -f - - echo "CI/CD Deploy Success!"