We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6909e7a commit fd0644aCopy full SHA for fd0644a
.github/workflows/docker-build.yml
@@ -51,6 +51,14 @@ jobs:
51
52
- name: Build and push Docker image
53
uses: docker/build-push-action@v5
54
+ # Ensure package-lock.json exists to avoid BuildKit checksum errors when restoring cache
55
+ # (some previous caches may reference package-lock.json; creating a harmless file prevents failures)
56
+ env:
57
+ GITHUB_WORKSPACE: ${{ github.workspace }}
58
+ - name: Ensure package-lock.json exists
59
+ run: |
60
+ if [ ! -f package-lock.json ]; then echo '{}' > package-lock.json; fi
61
+
62
with:
63
context: .
64
file: ./Dockerfile
0 commit comments