2
0
Fork 0
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:
CrazyMax 2021-04-30 00:51:48 +02:00 committed by GitHub
parent ae431178c1
commit 72e5d60481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: {