forked from liupeirong/MLOpsManufacturing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cd-pipeline.yml
75 lines (64 loc) · 1.99 KB
/
cd-pipeline.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# publish azureml_appinsights_logger
pr: none
trigger: none
resources:
pipelines:
- pipeline: observability_lib_ci
source: observability-lib-ci
trigger:
branches:
include:
- main
stages:
- stage: publish_to_ado_feed
pool:
vmImage: ubuntu-latest
jobs:
- deployment: publish_to_ado_feed
environment: 'ADO_Feed_Env'
strategy:
runOnce:
deploy:
steps:
- download: observability_lib_ci
artifact: 'observability_lib_whl'
displayName: 'download artifacts'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
displayName: 'Use Python 3.x'
- script: |
pip install twine
displayName: 'install twine'
- task: TwineAuthenticate@1
inputs:
artifactFeed: 'MLOpsManufacturing/observability_feed'
- script: |
python -m twine upload -r observability_feed --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/observability_lib_ci/observability_lib_whl/*
displayName: 'publish to ADO feed'
- stage: publish_to_testpypi
pool:
vmImage: ubuntu-latest
jobs:
- deployment: publish_to_testpypi
environment: 'Test_PyPI_Env'
strategy:
runOnce:
deploy:
steps:
- download: observability_lib_ci
artifact: 'observability_lib_whl'
displayName: 'download artifacts'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
displayName: 'Use Python 3.x'
- script: |
pip install twine
displayName: 'install twine'
- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: testpypi
- script: |
python -m twine upload -r testpypi --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/observability_lib_ci/observability_lib_whl/*
displayName: 'publish to TestPyPI'