Commit dc24cf9 1 parent 667cb22 commit dc24cf9 Copy full SHA for dc24cf9
File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ actionsToolkit.run(
83
83
await core . group ( `Builder info` , async ( ) => {
84
84
const builder = await toolkit . builder . inspect ( inputs . builder ) ;
85
85
core . info ( JSON . stringify ( builder , null , 2 ) ) ;
86
+ stateHelper . setBuilder ( builder ) ;
86
87
} ) ;
87
88
88
89
const args : string [ ] = await context . getArgs ( inputs , toolkit ) ;
@@ -145,6 +146,10 @@ actionsToolkit.run(
145
146
core . info ( 'Summary disabled' ) ;
146
147
return ;
147
148
}
149
+ if ( stateHelper . builder && stateHelper . builder . driver === 'cloud' ) {
150
+ core . info ( 'Summary is not yet supported with Docker Build Cloud' ) ;
151
+ return ;
152
+ }
148
153
try {
149
154
const buildxHistory = new BuildxHistory ( ) ;
150
155
const exportRes = await buildxHistory . export ( {
Original file line number Diff line number Diff line change 1
1
import * as core from '@actions/core' ;
2
2
3
+ import { BuilderInfo } from '@docker/actions-toolkit/lib/types/buildx/builder' ;
4
+
3
5
import { Inputs , sanitizeInputs } from './context' ;
4
6
5
7
export const tmpDir = process . env [ 'STATE_tmpDir' ] || '' ;
6
8
export const inputs = process . env [ 'STATE_inputs' ] ? JSON . parse ( process . env [ 'STATE_inputs' ] ) : undefined ;
9
+ export const builder = process . env [ 'STATE_builder' ] ? < BuilderInfo > JSON . parse ( process . env [ 'STATE_builder' ] ) : undefined ;
7
10
export const buildRef = process . env [ 'STATE_buildRef' ] || '' ;
8
11
9
12
export function setTmpDir ( tmpDir : string ) {
@@ -14,6 +17,10 @@ export function setInputs(inputs: Inputs) {
14
17
core . saveState ( 'inputs' , JSON . stringify ( sanitizeInputs ( inputs ) ) ) ;
15
18
}
16
19
20
+ export function setBuilder ( builder : BuilderInfo ) {
21
+ core . saveState ( 'builder' , JSON . stringify ( builder ) ) ;
22
+ }
23
+
17
24
export function setBuildRef ( buildRef : string ) {
18
25
core . saveState ( 'buildRef' , buildRef ) ;
19
26
}
You can’t perform that action at this time.
0 commit comments