Add bake-target input (#69)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-04-30 00:51:48 +02:00
committed by GitHub
parent ae431178c1
commit 72e5d60481
6 changed files with 12 additions and 4 deletions

3
dist/index.js generated vendored
View File

@ -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: {