-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.93 KB
/
deploy_batch_scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy Batch Scripts to Azure Storage
on:
workflow_run:
workflows: [Run tests]
types:
- completed
branches:
- main
workflow_dispatch:
jobs:
deploy_batch_scripts:
name: Deploy Batch scripts to Azure Storage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_STATIC_SITES }}
- name: Upload scripts to blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload \
--account-name kadeactivelearning \
--container-name 'training' \
--overwrite true \
--name 'code/train_model_from_scratch_on_catalog.py' \
--file './azure/batch/scripts/train_model_from_scratch_on_catalog.py'
az storage blob upload \
--account-name kadeactivelearning \
--container-name 'training' \
--overwrite true \
--name 'code/train_model_finetune_on_catalog.py' \
--file './azure/batch/scripts/train_model_finetune_on_catalog.py'
az storage blob upload \
--account-name kadeactivelearning \
--container-name 'training' \
--overwrite true \
--name 'code/promote_best_checkpoint_to_model.sh' \
--file './azure/batch/scripts/promote_best_checkpoint_to_model.sh'
az storage blob upload \
--account-name kadeactivelearning \
--container-name 'predictions' \
--overwrite true \
--name 'code/predict_on_catalog.py' \
--file './azure/batch/scripts/predict_on_catalog.py'
az storage blob upload \
--account-name kadeactivelearning \
--container-name 'predictions' \
--overwrite true \
--name 'code/predict_catalog_with_model.py' \
--file './azure/batch/scripts/predict_catalog_with_model.py'