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.
Support runnig multiple workflows and using a single entrypoint for p…
…row jobs. (kubeflow#25) Currently each repository needs to build a new Docker container. The sole purpose of this container is to specify the path to the Argo workflow to run. We can simplify this by just allowing each repository to define a "prow_config.yaml" file at the root of the repository and then having a single binary which will read that config file and use it to figure out which workflows to invoke This fixes kubeflow#24 We also add support for running multiple workflows. This will make it easy to start using prow to build our containers on each commit (kubeflow#19)
- Loading branch information
Showing
7 changed files
with
321 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# | ||
# This script is meant to be the entrypoint for a prow job. | ||
# It checkos out a repo and then looks for prow_config.yaml in that | ||
# repo and uses that to run one or more workflows. | ||
set -ex | ||
|
||
# Checkout the code. | ||
/usr/local/bin/checkout.sh /src | ||
|
||
# Trigger a workflow | ||
python -m kubeflow.testing.run_e2e_workflow \ | ||
--project=mlkube-testing \ | ||
--zone=us-east1-d \ | ||
--cluster=kubeflow-testing \ | ||
--bucket=kubernetes-jenkins \ | ||
--config_file=/src/${REPO_OWNER}/${REPO_NAME}/prow_config.yaml \ | ||
--repos_dir=/src |
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
Oops, something went wrong.