File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ actionsToolkit.run(
8686 await core . group ( `Builder info` , async ( ) => {
8787 const builder = await toolkit . builder . inspect ( inputs . builder ) ;
8888 core . info ( JSON . stringify ( builder , null , 2 ) ) ;
89+ stateHelper . setBuilder ( builder ) ;
8990 } ) ;
9091
9192 let definition : BakeDefinition | undefined ;
@@ -170,6 +171,10 @@ actionsToolkit.run(
170171 core . info ( 'Summary disabled' ) ;
171172 return ;
172173 }
174+ if ( stateHelper . builder && stateHelper . builder . driver === 'cloud' ) {
175+ core . info ( 'Summary is not yet supported with Docker Build Cloud' ) ;
176+ return ;
177+ }
173178 try {
174179 const buildxHistory = new BuildxHistory ( ) ;
175180 const exportRes = await buildxHistory . export ( {
Original file line number Diff line number Diff line change 11import * as core from '@actions/core' ;
22
33import { BakeDefinition } from '@docker/actions-toolkit/lib/types/buildx/bake' ;
4+ import { BuilderInfo } from '@docker/actions-toolkit/lib/types/buildx/builder' ;
45
56import { Inputs , sanitizeInputs } from './context' ;
67
78export const tmpDir = process . env [ 'STATE_tmpDir' ] || '' ;
89export const inputs = process . env [ 'STATE_inputs' ] ? JSON . parse ( process . env [ 'STATE_inputs' ] ) : undefined ;
10+ export const builder = process . env [ 'STATE_builder' ] ? < BuilderInfo > JSON . parse ( process . env [ 'STATE_builder' ] ) : undefined ;
911export const bakeDefinition = process . env [ 'STATE_bakeDefinition' ] ? < BakeDefinition > JSON . parse ( process . env [ 'STATE_bakeDefinition' ] ) : undefined ;
1012export const buildRefs = process . env [ 'STATE_buildRefs' ] ? process . env [ 'STATE_buildRefs' ] . split ( ',' ) : [ ] ;
1113
@@ -17,6 +19,10 @@ export function setInputs(inputs: Inputs) {
1719 core . saveState ( 'inputs' , JSON . stringify ( sanitizeInputs ( inputs ) ) ) ;
1820}
1921
22+ export function setBuilder ( builder : BuilderInfo ) {
23+ core . saveState ( 'builder' , JSON . stringify ( builder ) ) ;
24+ }
25+
2026export function setBakeDefinition ( bakeDefinition : BakeDefinition ) {
2127 core . saveState ( 'bakeDefinition' , JSON . stringify ( bakeDefinition ) ) ;
2228}
You can’t perform that action at this time.
0 commit comments