Skip to content

Commit

Permalink
update image
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan committed Feb 8, 2019
1 parent f768bd4 commit 2082528
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/presubmit-tests-with-pipeline-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,6 @@ cd ${KFAPP}
${KUBEFLOW_SRC}/scripts/kfctl.sh generate platform
${KUBEFLOW_SRC}/scripts/kfctl.sh apply platform
${KUBEFLOW_SRC}/scripts/kfctl.sh generate k8s

## Update pipeline component image
pushd ks_app
ks param set pipeline apiImage ${GCR_IMAGE_BASE_DIR}/api
ks param set pipeline persistenceAgentImage ${GCR_IMAGE_BASE_DIR}/persistenceagent
ks param set pipeline scheduledWorkflowImage ${GCR_IMAGE_BASE_DIR}/scheduledworkflow
ks param set pipeline uiImage ${GCR_IMAGE_BASE_DIR}/frontend
popd

${KUBEFLOW_SRC}/scripts/kfctl.sh apply k8s

gcloud container clusters get-credentials ${TEST_CLUSTER}
Expand All @@ -161,6 +152,16 @@ source "${DIR}/check-argo-status.sh"

echo "build docker images workflow completed"

## Update pipeline component with the newly built image
pushd ks_app
ks param set pipeline apiImage ${GCR_IMAGE_BASE_DIR}/api
ks param set pipeline persistenceAgentImage ${GCR_IMAGE_BASE_DIR}/persistenceagent
ks param set pipeline scheduledWorkflowImage ${GCR_IMAGE_BASE_DIR}/scheduledworkflow
ks param set pipeline uiImage ${GCR_IMAGE_BASE_DIR}/frontend
popd

${KUBEFLOW_SRC}/scripts/kfctl.sh apply k8s

echo "submitting argo workflow to run tests for commit ${PULL_PULL_SHA}..."
ARGO_WORKFLOW=`argo submit ${DIR}/${WORKFLOW_FILE} \
-p image-build-context-gcs-uri="$remote_code_archive_uri" \
Expand Down

0 comments on commit 2082528

Please sign in to comment.