forked from romil07/yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ACR-artifact.yml
44 lines (41 loc) · 1.43 KB
/
ACR-artifact.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
resources:
containers:
# - container: ACRResourceLatest
# type: ACR
# azureSubscription: ARM_Manual
# resourceGroup: RMDev
# registry: asmittaacr
# repository: iashishmittal/docker-acr
# - container: ACRResourceLatest
# type: ACR
# resourceGroup: RMDev
# azureSubscription: ARM_Connection:31ad5ccae63ae276641df14298dea6b55bb711e3
# registry: anshenormdev
# repository: testimage:56
- container: ACRResourceLatest
type: ACR
azureSubscription: ARM_Manual
resourceGroup: anumitaReg
registry: abhisheaAcr
repository: acr_container_repo1
# - container: DockerHubContainer
# endpoint: DockerHubConnection
# image: amjadocker/DockerContainerRepo11
stages:
- stage: stage1
jobs:
- job: download_specific_artifact1
displayName: download specific artifact1
pool:
name: Default
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Host $(resources.container.ACRResourceLatest.type)
Write-Host $(resources.container.ACRResourceLatest.tag)
Write-Host $(resources.container.ACRResourceLatest.digest)
Write-Host $(resources.container.ACRResourceLatest.repository)
# Write-Host $(resources.container.ACRResourceLatest.registry)
# Write-Host $(resources.container.ACRResourceLatest.location)