mirror of
https://github.com/docker/metadata-action.git
synced 2025-12-16 14:29:00 +08:00
Reproduce issue #546: tags input breaks when using # in Git tag or regex
This commit is contained in:
parent
c1e51972af
commit
90b68cf47e
@ -91,6 +91,44 @@ describe('getInputs', () => {
|
|||||||
tags: [],
|
tags: [],
|
||||||
} as Inputs
|
} 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',
|
'[%d] given %p as inputs, returns %p',
|
||||||
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user