From c56d394448df6fcb0857a20ae2232de3f87bf527 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 8 Mar 2023 15:34:38 +0900 Subject: [PATCH] Fixed Windows build process. Removing symlink during build process --- .github/workflows/images_build_windows.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/images_build_windows.yml b/.github/workflows/images_build_windows.yml index 84db3859b..1cd939c7e 100644 --- a/.github/workflows/images_build_windows.yml +++ b/.github/workflows/images_build_windows.yml @@ -133,6 +133,8 @@ jobs: run: | $context='.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\' $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=$( $tags_array | Foreach-Object { "--tag=$_" } ) @@ -243,6 +245,8 @@ jobs: run: | $context='.\Dockerfiles\${{ env.COMPONENT_BASE_BUILD_NAME }}\windows\' $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=$($tags_array | Foreach-Object { "--tag=$_" }) @@ -351,6 +355,8 @@ jobs: run: | $context='.\Dockerfiles\${{ matrix.component }}\windows\' $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=$($tags_array | Foreach-Object { "--tag=$_" })