2 Commits

Author SHA1 Message Date
51f6a7c7bd Force pull container image
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-22 11:23:43 +02:00
248ac46d5f Fix typo 2021-06-22 10:36:21 +02:00
2 changed files with 8 additions and 4 deletions

View File

@@ -13,13 +13,16 @@ volumes:
steps: steps:
- name: Debugging information - name: Debugging information
image: bv11-cr01.bessems.eu/library/packer-extended image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands: commands:
- yamllint --version - yamllint --version
- packer --version - packer --version
- pwsh --version - qemu-img --version
- ovftool --version - ovftool --version
- pwsh --version
- name: Windows Server 2019 - name: Windows Server 2019
image: bv11-cr01.bessems.eu/library/packer-extended image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands: commands:
- sed -i -e "s/<<img-productkey>>/$${PRODUCTKEY}/" packer/preseed/Server2019/Autounattend.xml - sed -i -e "s/<<img-productkey>>/$${PRODUCTKEY}/" packer/preseed/Server2019/Autounattend.xml
- | - |
@@ -69,6 +72,7 @@ steps:
path: /scratch path: /scratch
- name: Remove temporary resources - name: Remove temporary resources
image: bv11-cr01.bessems.eu/library/packer-extended image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands: commands:
- | - |
pwsh -file scripts/Remove-Resources.ps1 \ pwsh -file scripts/Remove-Resources.ps1 \

View File

@@ -8,7 +8,7 @@ $InvokeRestMethodSplat = @{
Method = 'GET' Method = 'GET'
} }
$InvokeWebRequestSplat = @{ $InvokeWebRequestSplat = @{
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object ${_.name -like '*.appxbundle'}).browser_download_url Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.appxbundle'}).browser_download_url
Out = "$env:temp\winget.appxbundle" Out = "$env:temp\winget.appxbundle"
} }
Invoke-WebRequest @InvokeWebRequestSplat Invoke-WebRequest @InvokeWebRequestSplat