File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,9 @@ const argv = yargs
89
89
} ,
90
90
metadata : {
91
91
description :
92
- "Tags and labels as json from https://github.com/docker/metadata-action v5. Overrides --tag" ,
93
- type : "string"
92
+ "Use tags and labels from https://github.com/docker/metadata-action v5. Utilises env.DOCKER_METADATA_OUTPUT_JSON. Overrides --tag" ,
93
+ type : "boolean" ,
94
+ default : false
94
95
}
95
96
} )
96
97
. help ( ) . argv ;
@@ -172,7 +173,10 @@ if (argv.build) {
172
173
) ;
173
174
174
175
// metadata json from GitHub Action docker/metadata-action@v5
175
- const metadata = argv . metadata ? JSON . parse ( argv . metadata ) : undefined ;
176
+ const metadata =
177
+ argv . metadata && env . DOCKER_METADATA_OUTPUT_JSON
178
+ ? JSON . parse ( env . DOCKER_METADATA_OUTPUT_JSON )
179
+ : undefined ;
176
180
177
181
const tags = metadata
178
182
? metadata . tags
You can’t perform that action at this time.
0 commit comments