Skip to content

Commit 9b43bea

Browse files
authored
fix(docker): add explicit build context for pre-built binary Dockerfile (#460)
## Summary - Adds `context: .` to `docker/build-push-action` in both `ci.yml` and `release-slsa.yml` - Fixes Docker build failure where pre-built binaries in `bin/` were not included in the build context ## Root Cause `docker/build-push-action` defaults to **Git context** (only committed/tracked files). Since PR #459 changed the Docker build to use pre-built binaries downloaded into `bin/` at workflow runtime, these files exist on the filesystem but are not tracked by git — so they were excluded from the build context, causing `lstat /bin: no such file or directory`. ## Test plan - [ ] CI passes (build-binaries + build_image jobs) - [ ] Verify Docker build step includes `bin/` contents in context
2 parents 077e63a + 5ca3ccd commit 9b43bea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ jobs:
533533
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
534534
id: push
535535
with:
536+
context: .
536537
push: true
537538
tags: ${{ steps.meta.outputs.tags }}
538539
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/release-slsa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ jobs:
297297
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
298298
id: push
299299
with:
300+
context: .
300301
push: true
301302
tags: ${{ steps.meta.outputs.tags }}
302303
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)