Skip to content

Commit

Permalink
Add random numbers at the end of endpoint name
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-li committed Aug 15, 2023
1 parent eaf8d6a commit 598497c
Show file tree
Hide file tree
Showing 20 changed files with 278 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra/bootstrapping
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
Expand All @@ -46,26 +46,26 @@ jobs:
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n customoutputsparquetendpoint -y
az ml batch-endpoint delete -n tomoutputsparquetendpoint8648 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/custom-outputs-parquet/endpoint.yml
az ml batch-endpoint create -n customoutputsparquetendpoint -f endpoints/batch/deploy-models/custom-outputs-parquet/endpoint.yml
az ml batch-endpoint create -n tomoutputsparquetendpoint8648 -f endpoints/batch/deploy-models/custom-outputs-parquet/endpoint.yml
working-directory: cli
- name: create deployment
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/custom-outputs-parquet/deployment.yml
az ml batch-deployment create -e customoutputsparquetendpoint -f endpoints/batch/deploy-models/custom-outputs-parquet/deployment.yml
az ml batch-deployment create -e tomoutputsparquetendpoint8648 -f endpoints/batch/deploy-models/custom-outputs-parquet/deployment.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n customoutputsparquetendpoint -y
az ml batch-endpoint delete -n tomoutputsparquetendpoint8648 -y
working-directory: cli
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra/bootstrapping
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
Expand All @@ -46,19 +46,19 @@ jobs:
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n heartclassifiermlflowendpoint -y
az ml batch-endpoint delete -n tclassifiermlflowendpoint2492 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/heart-classifier-mlflow/endpoint.yml
az ml batch-endpoint create -n heartclassifiermlflowendpoint -f endpoints/batch/deploy-models/heart-classifier-mlflow/endpoint.yml
az ml batch-endpoint create -n tclassifiermlflowendpoint2492 -f endpoints/batch/deploy-models/heart-classifier-mlflow/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n heartclassifiermlflowendpoint -y
az ml batch-endpoint delete -n tclassifiermlflowendpoint2492 -y
working-directory: cli
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra/bootstrapping
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
Expand All @@ -46,26 +46,26 @@ jobs:
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n facetextsummarizationendpoint -y
az ml batch-endpoint delete -n textsummarizationendpoint2688 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/huggingface-text-summarization/endpoint.yml
az ml batch-endpoint create -n facetextsummarizationendpoint -f endpoints/batch/deploy-models/huggingface-text-summarization/endpoint.yml
az ml batch-endpoint create -n textsummarizationendpoint2688 -f endpoints/batch/deploy-models/huggingface-text-summarization/endpoint.yml
working-directory: cli
- name: create deployment
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/huggingface-text-summarization/deployment.yml
az ml batch-deployment create -e facetextsummarizationendpoint -f endpoints/batch/deploy-models/huggingface-text-summarization/deployment.yml
az ml batch-deployment create -e textsummarizationendpoint2688 -f endpoints/batch/deploy-models/huggingface-text-summarization/deployment.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n facetextsummarizationendpoint -y
az ml batch-endpoint delete -n textsummarizationendpoint2688 -y
working-directory: cli
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra/bootstrapping
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
Expand All @@ -46,19 +46,19 @@ jobs:
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n elsimagenetclassifierendpoint -y
az ml batch-endpoint delete -n imagenetclassifierendpoint4907 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/imagenet-classifier/endpoint.yml
az ml batch-endpoint create -n elsimagenetclassifierendpoint -f endpoints/batch/deploy-models/imagenet-classifier/endpoint.yml
az ml batch-endpoint create -n imagenetclassifierendpoint4907 -f endpoints/batch/deploy-models/imagenet-classifier/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n elsimagenetclassifierendpoint -y
az ml batch-endpoint delete -n imagenetclassifierendpoint4907 -y
working-directory: cli
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra/bootstrapping
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
Expand All @@ -46,19 +46,19 @@ jobs:
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n modelsmnistclassifierendpoint -y
az ml batch-endpoint delete -n lsmnistclassifierendpoint4480 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-models/mnist-classifier/endpoint.yml
az ml batch-endpoint create -n modelsmnistclassifierendpoint -f endpoints/batch/deploy-models/mnist-classifier/endpoint.yml
az ml batch-endpoint create -n lsmnistclassifierendpoint4480 -f endpoints/batch/deploy-models/mnist-classifier/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n modelsmnistclassifierendpoint -y
az ml batch-endpoint delete -n lsmnistclassifierendpoint4480 -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-pipelines-batch-scoring-with-preprocessing-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/**
- cli/endpoints/batch/**
- infra/bootstrapping/**
- .github/workflows/cli-endpoints-batch-deploy-pipelines-batch-scoring-with-preprocessing-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n withpreprocessingendpoint4161 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/endpoint.yml
az ml batch-endpoint create -n withpreprocessingendpoint4161 -f endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/endpoint.yml
working-directory: cli
- name: create deployment
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/deployment.yml
az ml batch-deployment create -e withpreprocessingendpoint4161 -f endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/deployment.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n withpreprocessingendpoint4161 -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-pipelines-hello-batch-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-pipelines/hello-batch/**
- cli/endpoints/batch/**
- infra/bootstrapping/**
- .github/workflows/cli-endpoints-batch-deploy-pipelines-hello-batch-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n pelineshellobatchendpoint4977 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-pipelines/hello-batch/endpoint.yml
az ml batch-endpoint create -n pelineshellobatchendpoint4977 -f endpoints/batch/deploy-pipelines/hello-batch/endpoint.yml
working-directory: cli
- name: create deployment
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-pipelines/hello-batch/deployment.yml
az ml batch-deployment create -e pelineshellobatchendpoint4977 -f endpoints/batch/deploy-pipelines/hello-batch/deployment.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n pelineshellobatchendpoint4977 -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-pipelines-training-with-components-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-pipelines/training-with-components/**
- cli/endpoints/batch/**
- infra/bootstrapping/**
- .github/workflows/cli-endpoints-batch-deploy-pipelines-training-with-components-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n ingwithcomponentsendpoint5309 -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
cat endpoints/batch/deploy-pipelines/training-with-components/endpoint.yml
az ml batch-endpoint create -n ingwithcomponentsendpoint5309 -f endpoints/batch/deploy-pipelines/training-with-components/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml batch-endpoint delete -n ingwithcomponentsendpoint5309 -y
working-directory: cli
Loading

0 comments on commit 598497c

Please sign in to comment.