ci: Gitea 환경으로 전환 (git.tolelom.xyz 레지스트리)
- Docker registry: ghcr.io → git.tolelom.xyz - 로그인: GITEA_TOKEN 사용 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user