File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 vmImage : ' ubuntu-latest'
1111
1212steps :
13+ - task : AzurePowerShell@5
14+ inputs :
15+ azureSubscription : ' FUSE Temporary (174c5021-8109-4087-a3e2-a1de20420569)'
16+ ScriptType : ' InlineScript'
17+ azurePowerShellVersion : ' LatestVersion'
18+
19+ - task : AzurePowerShell@5
20+ inputs :
21+ azureSubscription : ' FUSE Temporary (174c5021-8109-4087-a3e2-a1de20420569)'
22+ ScriptType : ' InlineScript'
23+ Inline : |
24+ # You can write your azure powershell scripts inline here.
25+ # You can also pass predefined and custom variables to this script using arguments
26+ Write-Host 'blah'
27+ az group create --name NightlyPythonFunctionalTestContainerRegistryRG --location eastus
28+ az acr create --resource-group NightlyPythonFunctionalTestContainerRegistryRG --name NightlyPythonFunctionalTestContainerRegistry --sku Basic
29+ az acr login --name NightlyPythonFunctionalTestContainerRegistry
30+ docker pull hello-world
31+ docker tag hello-world nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1
32+ docker push nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1
33+ docker rmi nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1
34+ az acr repository list --name NightlyPythonFunctionalTestContainerRegistry --output table
35+ az acr repository show-tags --name NightlyPythonFunctionalTestContainerRegistry --repository hello-world --output table
36+ azurePowerShellVersion : ' LatestVersion'
37+
1338- script : echo Hello, world!
1439 displayName : ' Run a one-line script'
1540
You can’t perform that action at this time.
0 commit comments