diff --git a/.gitea/workflows/train.yaml b/.gitea/workflows/train.yaml index 67bbb13..5b41d3a 100644 --- a/.gitea/workflows/train.yaml +++ b/.gitea/workflows/train.yaml @@ -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에 배포 diff --git a/config.yaml b/config.yaml index afc3bd0..39fb485 100644 --- a/config.yaml +++ b/config.yaml @@ -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