File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1717 - " .github/workflows/**"
1818
1919env :
20+ # Async Job
21+ JOB_IMG_REGISTRY : ghcr.io
22+ JOB_IMG_ORG : kubeflow
23+ JOB_IMG_NAME : model-registry/job/async-upload
24+ JOB_IMG_VERSION : cicd
25+ # MR Server
26+ IMG_REGISTRY : ghcr.io
27+ IMG_ORG : kubeflow
28+ IMG_REPO : model-registry/server
29+ IMG_VERSION : cicd
2030 PUSH_IMAGE : false
2131
2232jobs :
4555 set -x
4656 sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
4757 - name : Run E2E tests
48- env :
49- IMG_VERSION : e2e
50- IMG : ghcr.io/kubeflow/model-registry/server:e2e
5158 run : |
5259 make test-e2e
5360 job-test :
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ IMG_REPO ?= model-registry/server
3131# container image build path
3232BUILD_PATH ?= .
3333# container image
34- ifdef IMG_REGISTRY
35- IMG := ${IMG_REGISTRY}/${IMG_ORG}/${IMG_REPO}
34+ ifdef IMG
35+ IMG := ${IMG}
36+ else ifdef IMG_REGISTRY
37+ IMG := ${IMG_REGISTRY}/${IMG_ORG}/${IMG_REPO}:${IMG_VERSION}
3638else
3739 IMG := ${IMG_ORG}/${IMG_REPO}
3840endif
@@ -332,7 +334,7 @@ endif
332334# build docker image
333335.PHONY : image/build
334336image/build :
335- ${DOCKER} build ${BUILD_PATH} -f ${DOCKERFILE} -t ${IMG} : $( IMG_VERSION ) $(ARGS )
337+ ${DOCKER} build ${BUILD_PATH} -f ${DOCKERFILE} -t ${IMG} $(ARGS )
336338
337339# build docker image using buildx
338340# PLATFORMS defines the target platforms for the model registry image be built to provide support to multiple
Original file line number Diff line number Diff line change @@ -15,10 +15,8 @@ deploy-latest-mr:
1515 cd ../../ && \
1616 $(if $(filter true,$(BUILD_IMAGE ) ) ,\
1717 IMG_VERSION=${IMG_VERSION} IMG=${IMG} make image/build ARGS=" --load$( if ${DEV_BUILD} , --target dev-build) " && \
18- ,\
19- docker pull $(IMG ) && \
2018 ) \
21- LOCAL=1 ./scripts/deploy_on_kind.sh
19+ LOCAL=1 IMG= ${IMG} ./scripts/deploy_on_kind.sh
2220 kubectl port-forward -n kubeflow services/model-registry-service 8080:8080 & echo $$ ! >> .port-forwards.pid
2321
2422.PHONY : deploy-test-minio
You can’t perform that action at this time.
0 commit comments