One of my GitHub Actions involves a build which uses a .dockerignore file that basically looks like this:
**
!web
!util/docker/web
!composer.json
The intent is to automatically ignore anything that isn't expressly specified later in the file.
Up until today, on my GitHub Actions, this worked without any issue. Today, however, I started getting failed builds:
#7 [2/8] COPY ./util/docker/web /bd_build/
#7 DONE 0.4s
#8 [3/8] RUN chmod a+x /bd_build/*.sh && /bd_build/prepare.sh && /bd_build/add_user.sh && /bd_build/setup.sh && /bd_build/cleanup.sh && rm -rf /bd_build
#8 0.070 chmod: cannot access '/bd_build/*.sh': No such file or directory
Removing the .dockerignore file caused the problem to be resolved and the build to continue as normal. Something has changed in the last 24 hours with some part of the stack that enables building Docker images via Buildkit on GitHub Actions that has affected how the .dockerignore file is parsed.
My GitHub Actions report that my current version of buildkit is moby/buildkit:buildx-stable-1 => buildkitd github.com/moby/buildkit v0.9.3 8d2625494a6a3d413e3d875a2ff7dd9b1ed1b1a9
One of my GitHub Actions involves a build which uses a
.dockerignorefile that basically looks like this:The intent is to automatically ignore anything that isn't expressly specified later in the file.
Up until today, on my GitHub Actions, this worked without any issue. Today, however, I started getting failed builds:
Removing the
.dockerignorefile caused the problem to be resolved and the build to continue as normal. Something has changed in the last 24 hours with some part of the stack that enables building Docker images via Buildkit on GitHub Actions that has affected how the.dockerignorefile is parsed.My GitHub Actions report that my current version of buildkit is
moby/buildkit:buildx-stable-1 => buildkitd github.com/moby/buildkit v0.9.3 8d2625494a6a3d413e3d875a2ff7dd9b1ed1b1a9