mirror of
https://github.com/docker/bake-action.git
synced 2026-04-22 16:14:40 +02:00
Merge pull request #420 from crazy-max/vars-input
add vars input for bake variables
This commit is contained in:
@@ -873,3 +873,30 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
source: ./test/attest
|
||||
|
||||
var:
|
||||
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: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
|
||||
driver-opts: |
|
||||
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
|
||||
-
|
||||
name: Build
|
||||
uses: ./
|
||||
with:
|
||||
source: ./test/go
|
||||
targets: binary
|
||||
vars: |
|
||||
DESTDIR=/tmp/build
|
||||
-
|
||||
name: Check output folder
|
||||
working-directory: /tmp/build
|
||||
run: |
|
||||
tree .
|
||||
|
||||
Reference in New Issue
Block a user