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