-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoke-packer.yml
60 lines (52 loc) · 1.59 KB
/
invoke-packer.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
trigger:
branches:
include:
- main
jobs:
- job: Job_1
displayName: Agent job 1
pool:
vmImage: windows-latest
steps:
- checkout: self
fetchDepth: 1
- task: AzureCLI@2
displayName: Restoring the Latest Backup to DR
inputs:
connectedServiceNameARM: 'Ecosystem_eng connection'
scriptType: ps
scriptLocation: inlineScript
inlineScript: >+
az --version
useGlobalConfig: true
# jobs:
# - job: 'test'
# displayName: 'Test PSNativeCommandArgumentPassing'
# pool:
# name: 'Azure Pipelines'
# vmImage: ubuntu-latest
# timeoutInMinutes: 10
# steps:
# - checkout: self
# - script: git clone https://github.com/actions/runner-images
# - pwsh: |
# Enable-ExperimentalFeature -Name PSNativeCommandArgumentPassing
# name: enable
# displayName: 'Enable PSNativeCommandArgumentPassing'
# condition: always()
# - pwsh: |
# $PSVersionTable
# $AgentIp = (Invoke-RestMethod http://ipinfo.io/json).ip
# $AgentIp = '[ "{0}" ]' -f $AgentIp
# packer build -var "allowed_inbound_ip_addresses=$($AgentIp)" "runner-images/images/linux/ubuntu2204.pkr.hcl"
# name: noQuotes2204
# displayName: 'Check no quotes 22.04'
# condition: always()
# - pwsh: |
# $PSVersionTable
# $AgentIp = (Invoke-RestMethod http://ipinfo.io/json).ip
# $AgentIp = '[ \"{0}\" ]' -f $AgentIp
# packer build -var "allowed_inbound_ip_addresses=$($AgentIp)" "runner-images/images/linux/ubuntu2204.pkr.hcl"
# name: quotes2204
# displayName: 'Check no quotes 22.04'
# condition: always()