Configure Harbor registry for CI/CD pipeline
CI - Lint & Test / lint-and-test (push) Waiting to run
Details
CI - Lint & Test / lint-and-test (push) Waiting to run
Details
- Set REGISTRY_URL to harbor.inje-private.com in train.yaml - Add docker login step with Gitea secrets (REGISTRY_USER, REGISTRY_PASSWORD) - Register secrets in Gitea repo via API - Add harbor config to config.yaml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b606ed18ae
commit
a8e57540b2
|
|
@ -47,19 +47,23 @@ jobs:
|
|||
build-and-deploy:
|
||||
needs: train
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REGISTRY_URL: harbor.inje-private.com
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Login to Harbor
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login $REGISTRY_URL -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
IMAGE_TAG="${{ github.sha }}"
|
||||
docker build -t $REGISTRY_URL/mlops-serving:${IMAGE_TAG} .
|
||||
docker push $REGISTRY_URL/mlops-serving:${IMAGE_TAG}
|
||||
env:
|
||||
REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
||||
|
||||
- name: Update manifest
|
||||
run: |
|
||||
|
|
@ -70,6 +74,4 @@ jobs:
|
|||
git add manifests/
|
||||
git commit -m "Deploy model ${IMAGE_TAG:0:7}"
|
||||
git push
|
||||
env:
|
||||
REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
||||
# ↑ manifests/ 변경 → ArgoCD가 자동 감지 → soo ns에 배포
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ components:
|
|||
ingress: argocd.gpulive.cloud
|
||||
installed: true
|
||||
|
||||
harbor:
|
||||
url: harbor.inje-private.com
|
||||
installed: true # 외부에서 운영 중
|
||||
location: external
|
||||
|
||||
dvc:
|
||||
version: 3.66.1
|
||||
remote_type: nas
|
||||
|
|
|
|||
Loading…
Reference in New Issue