mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
Move the conversion step after the software report (#8312)
This commit is contained in:
@@ -102,26 +102,6 @@ jobs:
|
|||||||
PACKER_LOG: 1
|
PACKER_LOG: 1
|
||||||
PACKER_LOG_PATH: "$(Agent.TempDirectory)/packer-log.txt"
|
PACKER_LOG_PATH: "$(Agent.TempDirectory)/packer-log.txt"
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Convert managed image to VHD'
|
|
||||||
inputs:
|
|
||||||
targetType: filePath
|
|
||||||
filePath: ./images.CI/linux-and-win/convert-to-vhd.ps1
|
|
||||||
arguments: -SubscriptionId $(AZURE_SUBSCRIPTION) `
|
|
||||||
-Location $(AZURE_LOCATION) `
|
|
||||||
-ResourceGroupName $(AZURE_RESOURCE_GROUP) `
|
|
||||||
-ManagedImageName "$(ManagedImageName)" `
|
|
||||||
-GalleryName "github_imagegeneration_convert_to_vhd" `
|
|
||||||
-GalleryImageSku "${{ parameters.image_type }}" `
|
|
||||||
-GalleryImageVersion "0.0.$(Build.BuildId)" `
|
|
||||||
-StorageAccountName $(AZURE_STORAGE_ACCOUNT) `
|
|
||||||
-StorageAccountContainerName "images" `
|
|
||||||
-VhdName "$(VhdName)" `
|
|
||||||
-ClientId $(CLIENT_ID) `
|
|
||||||
-ClientSecret $(CLIENT_SECRET) `
|
|
||||||
-TenantId $(AZURE_TENANT) `
|
|
||||||
-RemoveManagedImage
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Copy image artifacts to the separate directory'
|
displayName: 'Copy image artifacts to the separate directory'
|
||||||
inputs:
|
inputs:
|
||||||
@@ -166,6 +146,26 @@ jobs:
|
|||||||
-PrefixToPathTrim "$(TemplateDirectoryPath)" `
|
-PrefixToPathTrim "$(TemplateDirectoryPath)" `
|
||||||
-PrintTopNLongest 25
|
-PrintTopNLongest 25
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: 'Convert managed image to VHD'
|
||||||
|
inputs:
|
||||||
|
targetType: filePath
|
||||||
|
filePath: ./images.CI/linux-and-win/convert-to-vhd.ps1
|
||||||
|
arguments: -SubscriptionId $(AZURE_SUBSCRIPTION) `
|
||||||
|
-Location $(AZURE_LOCATION) `
|
||||||
|
-ResourceGroupName $(AZURE_RESOURCE_GROUP) `
|
||||||
|
-ManagedImageName "$(ManagedImageName)" `
|
||||||
|
-GalleryName "github_imagegeneration_convert_to_vhd" `
|
||||||
|
-GalleryImageSku "${{ parameters.image_type }}" `
|
||||||
|
-GalleryImageVersion "0.0.$(Build.BuildId)" `
|
||||||
|
-StorageAccountName $(AZURE_STORAGE_ACCOUNT) `
|
||||||
|
-StorageAccountContainerName "images" `
|
||||||
|
-VhdName "$(VhdName)" `
|
||||||
|
-ClientId $(CLIENT_ID) `
|
||||||
|
-ClientSecret $(CLIENT_SECRET) `
|
||||||
|
-TenantId $(AZURE_TENANT) `
|
||||||
|
-RemoveManagedImage
|
||||||
|
|
||||||
- ${{ if eq(parameters.create_release, true) }}:
|
- ${{ if eq(parameters.create_release, true) }}:
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Create release for VM deployment'
|
displayName: 'Create release for VM deployment'
|
||||||
|
|||||||
Reference in New Issue
Block a user