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
|
- 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/mlops-serving:${IMAGE_TAG} .
|
||||||
docker push $REGISTRY_URL/mlops-serving:${IMAGE_TAG}
|
docker push $REGISTRY_URL/mlops/mlops-serving:${IMAGE_TAG}
|
||||||
|
|
||||||
- name: Update manifest
|
- name: Update manifest
|
||||||
run: |
|
run: |
|
||||||
IMAGE_TAG="${{ github.sha }}"
|
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.name "gitea-runner"
|
||||||
git config user.email "runner@mlops"
|
git config user.email "runner@mlops"
|
||||||
git add manifests/
|
git add manifests/
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,8 @@ components:
|
||||||
|
|
||||||
harbor:
|
harbor:
|
||||||
url: harbor.inje-private.com
|
url: harbor.inje-private.com
|
||||||
installed: true # 외부에서 운영 중
|
project: mlops # harbor.inje-private.com/mlops/
|
||||||
|
installed: true
|
||||||
location: external
|
location: external
|
||||||
|
|
||||||
dvc:
|
dvc:
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: serving
|
- name: serving
|
||||||
image: ${REGISTRY_URL}/mlops-serving:latest # CI에서 자동 업데이트
|
image: harbor.inje-private.com/mlops/mlops-serving:latest # CI에서 자동 업데이트
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
resources:
|
resources:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue