Skip to content

Commit f28329e

Browse files
committed
chore(async-job): move env vars to the top level
Signed-off-by: Eric Dobroveanu <[email protected]>
1 parent 26ddd2a commit f28329e

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/async-upload-test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ on:
1717
- ".github/workflows/**"
1818

1919
env:
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

2232
jobs:
@@ -45,9 +55,6 @@ jobs:
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:

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ IMG_REPO ?= model-registry/server
3131
# container image build path
3232
BUILD_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}
3638
else
3739
IMG := ${IMG_ORG}/${IMG_REPO}
3840
endif
@@ -332,7 +334,7 @@ endif
332334
# build docker image
333335
.PHONY: image/build
334336
image/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

jobs/async-upload/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)