mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-23 11:17:58 +02:00
Add bake-target input (#69)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
@ -62,6 +62,7 @@ function getInputs() {
|
||||
labels: getInputList('labels', true),
|
||||
sepTags: core.getInput('sep-tags') || `\n`,
|
||||
sepLabels: core.getInput('sep-labels') || `\n`,
|
||||
bakeTarget: core.getInput('bake-target') || `ghaction-docker-meta`,
|
||||
githubToken: core.getInput('github-token')
|
||||
};
|
||||
}
|
||||
@ -698,7 +699,7 @@ class Meta {
|
||||
const bakeFile = path.join(context_1.tmpDir(), 'ghaction-docker-meta-bake.json').split(path.sep).join(path.posix.sep);
|
||||
fs.writeFileSync(bakeFile, JSON.stringify({
|
||||
target: {
|
||||
'ghaction-docker-meta': {
|
||||
[this.inputs.bakeTarget]: {
|
||||
tags: this.getTags(),
|
||||
labels: jsonLabels,
|
||||
args: {
|
||||
|
Reference in New Issue
Block a user