azureml-examples/cli/run-pipeline-job-with-regis...

14 строки
585 B
Bash

pipeline=$1
folder=$2
SCRIPT_PATH="${BASH_SOURCE[0]:-$0}"
SCRIPT_DIR="$( cd "$( dirname "${SCRIPT_PATH}" )" && pwd )"
cp $pipeline.yml ${pipeline}-registry-components.yml
sed -i -r "s/component:.+\/(.+).yml|component:\s*azureml:(.+)@latest/component: azureml:\/\/registries\/$REGISTRY_NAME\/components\/\L\1\L\2_$folder\/labels\/latest/g" ${pipeline}-registry-components.yml
sed -i -r "s/\/components\/component-/\/components\/component_/g" ${pipeline}-registry-components.yml
cat ${pipeline}-registry-components.yml
bash $SCRIPT_DIR/run-job.sh ${pipeline}-registry-components.yml