File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -522,3 +522,27 @@ jobs:
522
522
name : Check docker
523
523
run : |
524
524
docker image inspect localhost:5000/name/app:latest
525
+
526
+ disable-summary :
527
+ runs-on : ubuntu-latest
528
+ steps :
529
+ -
530
+ name : Checkout
531
+ uses : actions/checkout@v4
532
+ -
533
+ name : Set up Docker Buildx
534
+ uses : docker/setup-buildx-action@v3
535
+ with :
536
+ version : ${{ inputs.buildx-version || env.BUILDX_VERSION }}
537
+ driver-opts : |
538
+ image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
539
+ network=host
540
+ -
541
+ name : Build
542
+ uses : ./
543
+ with :
544
+ files : |
545
+ ./test/config.hcl
546
+ targets : app
547
+ env :
548
+ DOCKER_BUILD_NO_SUMMARY : true
Original file line number Diff line number Diff line change 19
19
* [ Customizing] ( #customizing )
20
20
* [ inputs] ( #inputs )
21
21
* [ outputs] ( #outputs )
22
+ * [ environment variables] ( #environment-variables )
22
23
* [ Subactions] ( #subactions )
23
24
* [ ` list-targets ` ] ( #list-targets )
24
25
* [ Contributing] ( #contributing )
@@ -255,6 +256,12 @@ The following outputs are available
255
256
|------------|----------|----------------------------|
256
257
| `targets` | List/CSV | List of extracted targest |
257
258
259
+ # ## environment variables
260
+
261
+ | Name | Type | Description |
262
+ |---------------------------|------|-------------------------------------------------------------------------------------------------------------------|
263
+ | `DOCKER_BUILD_NO_SUMMARY` | Bool | If `true`, [build summary](https://docs.docker.com/build/ci/github-actions/build-summary/) generation is disabled |
264
+
258
265
# # Contributing
259
266
260
267
Want to contribute? Awesome! You can find information about contributing to
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ actionsToolkit.run(
166
166
async ( ) => {
167
167
if ( stateHelper . buildRefs . length > 0 ) {
168
168
await core . group ( `Generating build summary` , async ( ) => {
169
+ if ( process . env . DOCKER_BUILD_NO_SUMMARY && Util . parseBool ( process . env . DOCKER_BUILD_NO_SUMMARY ) ) {
170
+ core . info ( 'Summary disabled' ) ;
171
+ return ;
172
+ }
169
173
try {
170
174
const buildxHistory = new BuildxHistory ( ) ;
171
175
const exportRes = await buildxHistory . export ( {
You can’t perform that action at this time.
0 commit comments