Skip to content

Commit

Permalink
Fix readme and software report paths (#8656)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpolikarpov-akvelon authored Oct 25, 2023
1 parent ba6a954 commit 80118e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions images.CI/linux-and-win/azure-pipelines/image-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ jobs:
inputs:
targetType: 'inline'
script: |
$readmePath = Join-Path "$(TemplateDirectoryPath)" "${{ parameters.image_readme_name }}"
$softwareReportPath = Join-Path "$(TemplateDirectoryPath)" "software-report.json"
$ImageType = "${{ parameters.image_type }}"
$rootDirectoryName = if ($ImageType.StartsWith("ubuntu")) { "linux" } else { "windows" }
$rootDirectoryPath = Join-Path "images" $rootDirectoryName | Resolve-Path
$readmePath = Join-Path $rootDirectoryPath "${{ parameters.image_readme_name }}"
$softwareReportPath = Join-Path $rootDirectoryPath "software-report.json"
Copy-Item -Path $readmePath -Destination "$(Build.ArtifactStagingDirectory)/"
if (Test-Path $softwareReportPath) {
Expand Down

0 comments on commit 80118e5

Please sign in to comment.