Fixed Windows build process. Removing symlink during build process

This commit is contained in:
Alexey Pustovalov 2023-03-08 15:34:38 +09:00
parent 4abb533355
commit c56d394448

View File

@ -133,6 +133,8 @@ jobs:
run: | run: |
$context='.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\' $context='.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\'
$dockerfile= $context + 'Dockerfile.${{ matrix.component }}' $dockerfile= $context + 'Dockerfile.${{ matrix.component }}'
# Can not build on GitHub due existing symlink. Must be removed before build process
Remove-Item -ErrorAction Ignore -Force -Path $context\README.md
$tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") ) $tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") )
$tags=$( $tags_array | Foreach-Object { "--tag=$_" } ) $tags=$( $tags_array | Foreach-Object { "--tag=$_" } )
@ -243,6 +245,8 @@ jobs:
run: | run: |
$context='.\Dockerfiles\${{ env.COMPONENT_BASE_BUILD_NAME }}\windows\' $context='.\Dockerfiles\${{ env.COMPONENT_BASE_BUILD_NAME }}\windows\'
$dockerfile= $context + 'Dockerfile.${{ matrix.component }}' $dockerfile= $context + 'Dockerfile.${{ matrix.component }}'
# Can not build on GitHub due existing symlink. Must be removed before build process
Remove-Item -ErrorAction Ignore -Force -Path $context\README.md
$tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") ) $tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") )
$tags=$($tags_array | Foreach-Object { "--tag=$_" }) $tags=$($tags_array | Foreach-Object { "--tag=$_" })
@ -351,6 +355,8 @@ jobs:
run: | run: |
$context='.\Dockerfiles\${{ matrix.component }}\windows\' $context='.\Dockerfiles\${{ matrix.component }}\windows\'
$dockerfile= $context + 'Dockerfile' $dockerfile= $context + 'Dockerfile'
# Can not build on GitHub due existing symlink. Must be removed before build process
Remove-Item -ErrorAction Ignore -Force -Path $context\README.md
$tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") ) $tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") )
$tags=$($tags_array | Foreach-Object { "--tag=$_" }) $tags=$($tags_array | Foreach-Object { "--tag=$_" })