The following code github actions is causing a cannot find file error
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
file: ./Dockerfile
context: .
push: true
#7 ERROR: failed to calculate checksum of ref fwl5evlh2jbjbcecsymbr444d::xyfhz3zqq8zzk4hsvz1hfsbky: failed to walk /tmp/buildkit-mount3180511636/home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs: lstat /tmp/buildkit-mount3180511636/home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs: no such file or directory
#8 [1/3] FROM docker.io/library/eclipse-temurin:17-jre-alpine@sha256:ad9223070abcf5716e98296a98c371368810deb36197b75f3a7b74815185c5e3
#8 resolve docker.io/library/eclipse-temurin:17-jre-alpine@sha256:ad9223070abcf5716e98296a98c371368810deb36197b75f3a7b74815185c5e3 done
#8 DONE 0.0s
------
> [3/3] COPY /home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs/spring-boot-junit5-example-1.0-SNAPSHOT /app/app.jar:
------
Dockerfile:6
--------------------
4 | WORKDIR /app
5 |
6 | >>> COPY /home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs/spring-boot-junit5-example-1.0-SNAPSHOT /app/app.jar
7 |
8 | EXPOSE 80
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref fwl5evlh2jbjbcecsymbr444d::xyfhz3zqq8zzk4hsvz1hfsbky: failed to walk /tmp/buildkit-mount3180511636/home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs: lstat /tmp/buildkit-mount3180511636/home/runner/work/spring-boot-junit5-example/spring-boot-junit5-example/build/libs: no such file or directory
1