|
| 1 | +trigger: none # no ci trigger |
| 2 | + |
| 3 | +pr: none # no pr trigger |
| 4 | + |
| 5 | +pool: |
| 6 | + vmImage: 'ubuntu-latest' |
| 7 | + |
| 8 | +steps: |
| 9 | +- task: AzurePowerShell@5 |
| 10 | + displayName: 'Create container' |
| 11 | + inputs: |
| 12 | + azureSubscription: 'FUSE Temporary (174c5021-8109-4087-a3e2-a1de20420569)' |
| 13 | + ScriptType: 'InlineScript' |
| 14 | + Inline: | |
| 15 | + Set-PSDebug -Trace 1; |
| 16 | + Write-Host 'blah'; |
| 17 | + Write-Host 'az group create --name NightlyPythonFunctionalTestContainerRegistryRG --location eastus' |
| 18 | + az group create --name NightlyPythonFunctionalTestContainerRegistryRG --location eastus |
| 19 | + Write-Host 'az acr create --resource-group NightlyPythonFunctionalTestContainerRegistryRG --name NightlyPythonFunctionalTestContainerRegistry --sku Basic' |
| 20 | + az acr create --resource-group NightlyPythonFunctionalTestContainerRegistryRG --name NightlyPythonFunctionalTestContainerRegistry --sku Basic |
| 21 | + az acr login --name NightlyPythonFunctionalTestContainerRegistry |
| 22 | + docker pull hello-world |
| 23 | + docker tag hello-world nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1 |
| 24 | + docker push nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1 |
| 25 | + docker rmi nightlypythonfunctionaltestcontainerregistry.azurecr.io/hello-world:v1 |
| 26 | + az acr repository list --name NightlyPythonFunctionalTestContainerRegistry --output table |
| 27 | + az acr repository show-tags --name NightlyPythonFunctionalTestContainerRegistry --repository hello-world --output table |
| 28 | + azurePowerShellVersion: 'LatestVersion' |
| 29 | + |
| 30 | +- script: echo Hello, world! |
| 31 | + displayName: 'Run a one-line script' |
| 32 | + |
| 33 | +- script: | |
| 34 | + echo Add other tasks to build, test, and deploy your project. |
| 35 | + echo See https://aka.ms/yaml |
| 36 | + displayName: 'Run a multi-line script' |
0 commit comments