diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4110e5f..aa68a19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,14 +32,11 @@ jobs: env: VITE_API_BASE_URL: https://a301.api.tolelom.xyz - # ── 2. Docker 빌드 & GHCR 푸시 (main 머지 시만) ─────────────────────────── + # ── 2. Docker 빌드 & Gitea 레지스트리 푸시 (main 머지 시만) ─────────────── docker: needs: test if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v4 @@ -47,22 +44,22 @@ jobs: - uses: docker/login-action@v3 with: - registry: ghcr.io + registry: git.tolelom.xyz username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GITEA_TOKEN }} - uses: docker/build-push-action@v5 with: context: . push: true - tags: ghcr.io/${{ github.repository_owner }}/a301-web:latest + tags: git.tolelom.xyz/${{ github.repository_owner }}/a301-web:latest platforms: linux/arm64 build-args: | VITE_API_BASE_URL=https://a301.api.tolelom.xyz cache-from: type=gha cache-to: type=gha,mode=max - # ── 3. 서버 배포 (Docker 푸시 완료 후) ──────────────────────────────────── + # ── 3. 서버 배포 ────────────────────────────────────────────────────────── deploy: needs: docker runs-on: ubuntu-latest