mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 03:37:59 +02:00
Do not sanitize before pattern matching
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -53,7 +53,7 @@ describe('transform', () => {
|
||||
[
|
||||
`name=name/bar`,
|
||||
`name/foo,enable=false`,
|
||||
`name=ghcr.io/name/foo,enable=true`
|
||||
`name=ghcr.io/UserName/Foo,enable=true`
|
||||
],
|
||||
[
|
||||
{
|
||||
@ -65,7 +65,7 @@ describe('transform', () => {
|
||||
enable: false,
|
||||
},
|
||||
{
|
||||
name: `ghcr.io/name/foo`,
|
||||
name: `ghcr.io/UserName/Foo`,
|
||||
enable: true,
|
||||
},
|
||||
] as Image[],
|
||||
|
@ -1277,9 +1277,9 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,pattern=p1-v(\\d.\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1-v(\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1-v(\\d.\\d),group=3`,
|
||||
`type=match,pattern=p1/v(\\d.\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1/v(\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1/v(\\d.\\d),group=3`,
|
||||
`type=ref,event=pr`,
|
||||
`type=sha`
|
||||
]
|
||||
@ -1316,8 +1316,8 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,pattern=p1-v(\\d.\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1-v(\\d.\\d),group=1,suffix=`,
|
||||
`type=match,pattern=p1/v(\\d.\\d.\\d),group=1`,
|
||||
`type=match,pattern=p1/v(\\d.\\d),group=1,suffix=`,
|
||||
`type=ref,event=pr`,
|
||||
`type=sha`
|
||||
],
|
||||
|
Reference in New Issue
Block a user