-
Notifications
You must be signed in to change notification settings - Fork 1.3k
hack: use bake to build buildkit images #6107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8993f77
to
e76584a
Compare
name: Build | ||
uses: docker/bake-action@v6 | ||
with: | ||
source: ${{ github.server_url }}/${{ github.repository }}.git#${{ github.ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use Git context from our actions-toolkit: https://github.com/docker/actions-toolkit/blob/633bcf1936ffff0e05a4bbe2b23c71abf6f4111e/src/context.ts#L45-L60
Because currently it fetches by sha and not git ref so tags are not pulled: https://github.com/crazy-max/buildkit/actions/runs/16967780276/job/48096258733#step:7:440. That would therefore set a commit sha as BuildKit version: https://github.com/crazy-max/buildkit/actions/runs/16967780276/job/48096258733#step:7:1654
docker/actions-toolkit#677 would fix it but it's probably better to wait for #5974.
So in the meantime set Git context manually with full git ref as we currently do in our hack script:
Line 43 in ec7a152
currentcontext="https://github.com/$GITHUB_REPOSITORY.git#$GITHUB_REF" |
2c7f587
to
a20221c
Compare
ec17dd5
to
89e4915
Compare
Signed-off-by: CrazyMax <[email protected]>
89e4915
to
1fa57ee
Compare
continue carrying changes from #3204