mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-04 00:38:32 +00:00
Add bake-target input (#69)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
ae431178c1
commit
72e5d60481
6 changed files with 12 additions and 4 deletions
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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue