forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update auto deploy to be runnable on kubeflow-ci. (kubeflow#294)
* add init.sh * Move repo checkout to init.sh * Update Dockerfile to use init.sh * Change image pull path * Add args to deploy config * Add PYTHONPATH * temp disable deployment deletion * add comment * update * create issue for deployment permission and deletion script * use command in yaml instead of args + ENTRYPOINT * change tag to live
- Loading branch information
1 parent
b0e09d8
commit 8e3b8f7
Showing
5 changed files
with
42 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# Deployment configs. | ||
SRC_DIR=$1 | ||
REPO_OWNER=$2 | ||
PROJECT=$3 | ||
WORKER_CLUSTER=$4 | ||
|
||
# Check out fresh copy of KF and deployment workflow. | ||
# TODO(gabrielwen): Need to make a seperate workflow to snapshot repos. | ||
/usr/local/bin/checkout.sh ${SRC_DIR} ${REPO_OWNER} kubeflow | ||
/usr/local/bin/checkout.sh ${SRC_DIR} ${REPO_OWNER} testing | ||
|
||
PYTHONPATH="${PYTHONPATH}:${SRC_DIR}/${REPO_OWNER}/testing/py" | ||
export PYTHONPATH | ||
|
||
# Initiate deployment workflow. | ||
${SRC_DIR}/${REPO_OWNER}/testing/test-infra/auto-deploy/workflows.sh \ | ||
${SRC_DIR} \ | ||
${REPO_OWNER} \ | ||
${PROJECT} \ | ||
${WORKER_CLUSTER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters