mirror of
https://github.com/docker/bake-action.git
synced 2026-05-04 05:24:12 +02:00
Merge pull request #416 from crazy-max/refactor-git-context
refactor: use new gitContext for bake source resolution
This commit is contained in:
@@ -445,6 +445,31 @@ jobs:
|
||||
-
|
||||
name: Build
|
||||
uses: ./
|
||||
with:
|
||||
files: |
|
||||
./test/config.hcl
|
||||
|
||||
git-context-query:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||
with:
|
||||
version: v0.33.0
|
||||
driver-opts: |
|
||||
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
|
||||
-
|
||||
name: Build
|
||||
uses: ./
|
||||
with:
|
||||
files: |
|
||||
./test/config.hcl
|
||||
env:
|
||||
BUILDX_SEND_GIT_QUERY_AS_INPUT: true
|
||||
|
||||
git-context-and-local:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -468,6 +493,7 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
files: |
|
||||
./test/config.hcl
|
||||
cwd://${{ steps.meta.outputs.bake-file }}
|
||||
|
||||
multi-output:
|
||||
|
||||
Reference in New Issue
Block a user