Skip to content

Commit 7a06982

Browse files
author
BruceHaley
committed
Update experimental-create-azure-container-registry.yml for Azure Pipelines
1 parent 5ad2c5c commit 7a06982

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

pipelines/experimental-create-azure-container-registry.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@ pool:
1010
vmImage: 'ubuntu-latest'
1111

1212
steps:
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

0 commit comments

Comments
 (0)