From 4cae7d1df5be34f4b99e8f79302b53804905d367 Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Sat, 8 Feb 2025 13:25:31 +0000 Subject: [PATCH] test if symlink --- .github/workflows/matrixbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/matrixbuild.yml b/.github/workflows/matrixbuild.yml index ec769bc..de387c1 100644 --- a/.github/workflows/matrixbuild.yml +++ b/.github/workflows/matrixbuild.yml @@ -28,6 +28,6 @@ jobs: - uses: actions/checkout@v4 - name: Work around Docker BuildKit regression # https://github.com/moby/buildkit/issues/2119: `DOCKER_BUILDKIT=1 docker build` fails if Dockerfile is a symlink - run: cp -f --remove-destination $(readlink -f .github/images/${{matrix.dockerenv}}.Dockerfile) .github/images/${{matrix.dockerenv}}.Dockerfile + run: [ -L .github/images/${{matrix.dockerenv}}.Dockerfile ] && cp --remove-destination $(readlink -f .github/images/${{matrix.dockerenv}}.Dockerfile) .github/images/${{matrix.dockerenv}}.Dockerfile - name: Run build on ${{matrix.dockerenv}} run: docker build . --file .github/images/${{matrix.dockerenv}}.Dockerfile --build-arg image=${{matrix.dockerenv}}