Skip to content

Commit f5a5477

Browse files
authored
build: call input method (#23454)
<!--Delete sections as needed --> ## Description adds docker/bake-action#338 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 5074a31 commit f5a5477

File tree

1 file changed

+26
-0
lines changed
  • content/manuals/build/ci/github-actions

1 file changed

+26
-0
lines changed

content/manuals/build/ci/github-actions/checks.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,29 @@ jobs:
9898
targets: build
9999
push: true
100100
```
101+
102+
### Using the `call` input directly
103+
104+
You can also set the build method with the `call` input which is equivalent to using the `--call` flag with `docker buildx bake`
105+
106+
For example, to run a check without defining `call` in your Bake file:
107+
108+
```yaml
109+
name: ci
110+
111+
on:
112+
push:
113+
114+
jobs:
115+
docker:
116+
runs-on: ubuntu-latest
117+
steps:
118+
- name: Set up Docker Buildx
119+
uses: docker/setup-buildx-action@v3
120+
121+
- name: Validate build configuration
122+
uses: docker/bake-action@v6
123+
with:
124+
targets: build
125+
call: check
126+
```

0 commit comments

Comments
 (0)