mirror of
https://github.com/docker/metadata-action.git
synced 2025-12-15 22:09:00 +08:00
Merge 4af9595a81 into c299e40c65
This commit is contained in:
commit
e2874350d3
@ -91,6 +91,44 @@ describe('getInputs', () => {
|
||||
tags: [],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
3,
|
||||
new Map<string, string>([
|
||||
['tags', 'type=match,pattern=mkdocs-(.*),group=1'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: [],
|
||||
labels: [],
|
||||
annotations: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
sepAnnotations: '\n',
|
||||
tags: ['type=match,pattern=mkdocs-(.*),group=1'],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
4,
|
||||
new Map<string, string>([
|
||||
['tags', 'type=match,pattern=mkdocs#(.*),group=1'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: [],
|
||||
labels: [],
|
||||
annotations: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
sepAnnotations: '\n',
|
||||
tags: ['type=match,pattern=mkdocs#(.*),group=1'],
|
||||
} as Inputs
|
||||
],
|
||||
])(
|
||||
'[%d] given %p as inputs, returns %p',
|
||||
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
||||
|
||||
@ -27,7 +27,7 @@ export function getInputs(): Inputs {
|
||||
return {
|
||||
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
|
||||
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
|
||||
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
|
||||
tags: Util.getInputList('tags', {ignoreComma: true}),
|
||||
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
|
||||
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
|
||||
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#'}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user