mirror of
https://github.com/docker/metadata-action.git
synced 2026-01-19 03:18:57 +08: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
|
|
@ -14,6 +14,7 @@ export interface Inputs {
|
|||
labels: string[];
|
||||
sepTags: string;
|
||||
sepLabels: string;
|
||||
bakeTarget: string;
|
||||
githubToken: string;
|
||||
}
|
||||
|
||||
|
|
@ -32,6 +33,7 @@ export function getInputs(): Inputs {
|
|||
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')
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ export class Meta {
|
|||
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