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:
|
build-and-deploy:
|
||||||
needs: train
|
needs: train
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
REGISTRY_URL: harbor.inje-private.com
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
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
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
IMAGE_TAG="${{ github.sha }}"
|
IMAGE_TAG="${{ github.sha }}"
|
||||||
docker build -t $REGISTRY_URL/mlops-serving:${IMAGE_TAG} .
|
docker build -t $REGISTRY_URL/mlops-serving:${IMAGE_TAG} .
|
||||||
docker push $REGISTRY_URL/mlops-serving:${IMAGE_TAG}
|
docker push $REGISTRY_URL/mlops-serving:${IMAGE_TAG}
|
||||||
env:
|
|
||||||
REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
|
||||||
|
|
||||||
- name: Update manifest
|
- name: Update manifest
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -70,6 +74,4 @@ jobs:
|
||||||
git add manifests/
|
git add manifests/
|
||||||
git commit -m "Deploy model ${IMAGE_TAG:0:7}"
|
git commit -m "Deploy model ${IMAGE_TAG:0:7}"
|
||||||
git push
|
git push
|
||||||
env:
|
|
||||||
REGISTRY_URL: ${{ vars.REGISTRY_URL }}
|
|
||||||
# ↑ manifests/ 변경 → ArgoCD가 자동 감지 → soo ns에 배포
|
# ↑ manifests/ 변경 → ArgoCD가 자동 감지 → soo ns에 배포
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,11 @@ components:
|
||||||
ingress: argocd.gpulive.cloud
|
ingress: argocd.gpulive.cloud
|
||||||
installed: true
|
installed: true
|
||||||
|
|
||||||
|
harbor:
|
||||||
|
url: harbor.inje-private.com
|
||||||
|
installed: true # 외부에서 운영 중
|
||||||
|
location: external
|
||||||
|
|
||||||
dvc:
|
dvc:
|
||||||
version: 3.66.1
|
version: 3.66.1
|
||||||
remote_type: nas
|
remote_type: nas
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue