Build Python apps
https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops
Use CI/CD to deploy a Python web app to Azure App Service on Linux
https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python-webapp?view=azure-devops
_______________________________________________
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python27:
python.version: '2.7'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: python "a1.py"
- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
print('Hello world 1')
print('Hello world 2')
No comments:
Post a Comment