Create Harbor mlops project and update image paths
CI - Lint & Test / lint-and-test (push) Waiting to run
Details
CI - Lint & Test / lint-and-test (push) Waiting to run
Details
- Create mlops project in Harbor (private) - Image path: harbor.inje-private.com/mlops/mlops-serving - Update train.yaml and manifests/deployment.yaml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a8e57540b2
commit
b25b7d080e
|
|
@ -62,13 +62,13 @@ jobs:
|
|||
- 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}
|
||||
docker build -t $REGISTRY_URL/mlops/mlops-serving:${IMAGE_TAG} .
|
||||
docker push $REGISTRY_URL/mlops/mlops-serving:${IMAGE_TAG}
|
||||
|
||||
- name: Update manifest
|
||||
run: |
|
||||
IMAGE_TAG="${{ github.sha }}"
|
||||
sed -i "s|image:.*mlops-serving.*|image: $REGISTRY_URL/mlops-serving:${IMAGE_TAG}|" manifests/deployment.yaml
|
||||
sed -i "s|image:.*mlops-serving.*|image: $REGISTRY_URL/mlops/mlops-serving:${IMAGE_TAG}|" manifests/deployment.yaml
|
||||
git config user.name "gitea-runner"
|
||||
git config user.email "runner@mlops"
|
||||
git add manifests/
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ components:
|
|||
|
||||
harbor:
|
||||
url: harbor.inje-private.com
|
||||
installed: true # 외부에서 운영 중
|
||||
project: mlops # harbor.inje-private.com/mlops/
|
||||
installed: true
|
||||
location: external
|
||||
|
||||
dvc:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: serving
|
||||
image: ${REGISTRY_URL}/mlops-serving:latest # CI에서 자동 업데이트
|
||||
image: harbor.inje-private.com/mlops/mlops-serving:latest # CI에서 자동 업데이트
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
resources:
|
||||
|
|
|
|||
Loading…
Reference in New Issue