Wednesday 20 November 2019

DevOps Day1 - Experiments

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:
taskUsePythonVersion@0
  inputs:
    versionSpec'$(python.version)'
  displayName'Use Python $(python.version)'
scriptpython "a1.py"

taskPythonScript@0
  inputs:
    scriptSource'inline'
    script: |
      print('Hello world 1')
      print('Hello world 2')

No comments:

Post a Comment