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(
85
85
let builder : BuilderInfo ;
86
86
await core . group ( `Builder info` , async ( ) => {
87
87
builder = await toolkit . builder . inspect ( inputs . builder ) ;
88
+ stateHelper . setBuilderDriver ( builder . driver ?? '' ) ;
89
+ stateHelper . setBuilderEndpoint ( builder . nodes ?. [ 0 ] ?. endpoint ?? '' ) ;
88
90
core . info ( JSON . stringify ( builder , null , 2 ) ) ;
89
91
} ) ;
90
92
@@ -173,8 +175,6 @@ actionsToolkit.run(
173
175
core . info ( 'Build summary is not yet supported on GHES' ) ;
174
176
} else if ( ! ( await toolkit . buildx . versionSatisfies ( '>=0.13.0' ) ) ) {
175
177
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' ) ;
178
178
} else if ( ! ref ) {
179
179
core . info ( 'Build summary requires a build reference' ) ;
180
180
} else {
@@ -217,7 +217,9 @@ actionsToolkit.run(
217
217
await GitHub . writeBuildSummary ( {
218
218
exportRes : exportRes ,
219
219
uploadRes : uploadRes ,
220
- inputs : stateHelper . summaryInputs
220
+ inputs : stateHelper . summaryInputs ,
221
+ driver : stateHelper . builderDriver ,
222
+ endpoint : stateHelper . builderEndpoint
221
223
} ) ;
222
224
} catch ( e ) {
223
225
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';
5
5
import { Inputs } from './context' ;
6
6
7
7
export 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
+
8
13
export const buildRef = process . env [ 'STATE_buildRef' ] || '' ;
9
14
export const isSummarySupported = ! ! process . env [ 'STATE_isSummarySupported' ] ;
10
- export const summaryInputs = process . env [ 'STATE_summaryInputs' ] ? JSON . parse ( process . env [ 'STATE_summaryInputs' ] ) : undefined ;
11
15
12
16
export function setTmpDir ( tmpDir : string ) {
13
17
core . saveState ( 'tmpDir' , tmpDir ) ;
14
18
}
15
19
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
+
16
28
export function setBuildRef ( buildRef : string ) {
17
29
core . saveState ( 'buildRef' , buildRef ) ;
18
30
}
You can’t perform that action at this time.
0 commit comments