File tree 2 files changed +2
-33
lines changed
2 files changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -455,29 +455,3 @@ jobs:
455
455
-
456
456
name : Print envs
457
457
run : env|sort
458
-
459
- bake-cwd :
460
- runs-on : ubuntu-latest
461
- steps :
462
- -
463
- name : Checkout
464
- uses : actions/checkout@v4
465
- -
466
- name : Set up Docker Buildx
467
- uses : docker/setup-buildx-action@v3
468
- with :
469
- version : latest
470
- -
471
- name : Docker meta
472
- id : docker_meta
473
- uses : ./
474
- -
475
- name : Build
476
- uses : docker/bake-action@v4
477
- with :
478
- files : |
479
- ./test/docker-bake.hcl
480
- ${{ steps.docker_meta.outputs.bake-file-tags }}
481
- ${{ steps.docker_meta.outputs.bake-file-labels }}
482
- targets : |
483
- release
Original file line number Diff line number Diff line change @@ -94,22 +94,17 @@ actionsToolkit.run(
94
94
setOutput ( 'json' , JSON . stringify ( jsonOutput ) ) ;
95
95
} ) ;
96
96
97
- // Specifying local and remote bake files is supported since Buildx 0.12.0.
98
- // Set cwd:// prefix for local bake files to avoid ambiguity with remote
99
- // https://github.com/docker/buildx/pull/1838
100
- const bakeFileCwdPrefix = ( await toolkit . buildx . versionSatisfies ( '>=0.12.0' ) . catch ( ( ) => false ) ) ? 'cwd://' : '' ;
101
-
102
97
// Bake files
103
98
for ( const kind of [ 'tags' , 'labels' , 'annotations:' + annotationsLevels ] ) {
104
99
const outputName = kind . split ( ':' ) [ 0 ] ;
105
100
const bakeFile : string = meta . getBakeFile ( kind ) ;
106
101
await core . group ( `Bake file definition (${ outputName } )` , async ( ) => {
107
102
core . info ( fs . readFileSync ( bakeFile , 'utf8' ) ) ;
108
- setOutput ( `bake-file-${ outputName } ` , ` ${ bakeFileCwdPrefix } ${ bakeFile } ` ) ;
103
+ setOutput ( `bake-file-${ outputName } ` , bakeFile ) ;
109
104
} ) ;
110
105
}
111
106
112
107
// Bake file with tags and labels
113
- setOutput ( `bake-file` , `${ bakeFileCwdPrefix } ${ meta . getBakeFileTagsLabels ( ) } ` ) ;
108
+ setOutput ( `bake-file` , `${ meta . getBakeFileTagsLabels ( ) } ` ) ;
114
109
}
115
110
) ;
You can’t perform that action at this time.
0 commit comments