File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ actionsToolkit.run(
8585 let builder : BuilderInfo ;
8686 await core . group ( `Builder info` , async ( ) => {
8787 builder = await toolkit . builder . inspect ( inputs . builder ) ;
88+ stateHelper . setBuilderDriver ( builder . driver ?? '' ) ;
89+ stateHelper . setBuilderEndpoint ( builder . nodes ?. [ 0 ] ?. endpoint ?? '' ) ;
8890 core . info ( JSON . stringify ( builder , null , 2 ) ) ;
8991 } ) ;
9092
@@ -173,8 +175,6 @@ actionsToolkit.run(
173175 core . info ( 'Build summary is not yet supported on GHES' ) ;
174176 } else if ( ! ( await toolkit . buildx . versionSatisfies ( '>=0.13.0' ) ) ) {
175177 core . info ( 'Build summary requires Buildx >= 0.13.0' ) ;
176- } else if ( builder && builder . driver === 'cloud' ) {
177- core . info ( 'Build summary is not yet supported with Docker Build Cloud' ) ;
178178 } else if ( ! ref ) {
179179 core . info ( 'Build summary requires a build reference' ) ;
180180 } else {
@@ -217,7 +217,9 @@ actionsToolkit.run(
217217 await GitHub . writeBuildSummary ( {
218218 exportRes : exportRes ,
219219 uploadRes : uploadRes ,
220- inputs : stateHelper . summaryInputs
220+ inputs : stateHelper . summaryInputs ,
221+ driver : stateHelper . builderDriver ,
222+ endpoint : stateHelper . builderEndpoint
221223 } ) ;
222224 } catch ( e ) {
223225 core . warning ( e . message ) ;
Original file line number Diff line number Diff line change @@ -5,14 +5,26 @@ import {Build} from '@docker/actions-toolkit/lib/buildx/build';
55import { Inputs } from './context' ;
66
77export const tmpDir = process . env [ 'STATE_tmpDir' ] || '' ;
8+
9+ export const builderDriver = process . env [ 'STATE_builderDriver' ] || '' ;
10+ export const builderEndpoint = process . env [ 'STATE_builderEndpoint' ] || '' ;
11+ export const summaryInputs = process . env [ 'STATE_summaryInputs' ] ? JSON . parse ( process . env [ 'STATE_summaryInputs' ] ) : undefined ;
12+
813export const buildRef = process . env [ 'STATE_buildRef' ] || '' ;
914export const isSummarySupported = ! ! process . env [ 'STATE_isSummarySupported' ] ;
10- export const summaryInputs = process . env [ 'STATE_summaryInputs' ] ? JSON . parse ( process . env [ 'STATE_summaryInputs' ] ) : undefined ;
1115
1216export function setTmpDir ( tmpDir : string ) {
1317 core . saveState ( 'tmpDir' , tmpDir ) ;
1418}
1519
20+ export function setBuilderDriver ( builderDriver : string ) {
21+ core . saveState ( 'builderDriver' , builderDriver ) ;
22+ }
23+
24+ export function setBuilderEndpoint ( builderEndpoint : string ) {
25+ core . saveState ( 'builderEndpoint' , builderEndpoint ) ;
26+ }
27+
1628export function setBuildRef ( buildRef : string ) {
1729 core . saveState ( 'buildRef' , buildRef ) ;
1830}
You can’t perform that action at this time.
0 commit comments