mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 03:37:59 +02:00
Improve logging (#58)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -713,7 +713,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -744,7 +744,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=^v(\\d{1,3}.\\d{1,3}.\\d{1,3})$",group=1`
|
||||
`type=match,"pattern=^v(\\d.\\d.\\d)$",group=1`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -775,7 +775,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}.\\d{1,3}-(alpha|beta).\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d.\\d-(alpha|beta).\\d+"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -806,7 +806,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -837,7 +837,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=/^v(\\d{1,3}.\\d{1,3}.\\d{1,3})$/ig",group=1`,
|
||||
`type=match,"pattern=/^v(\\d.\\d.\\d)$/ig",group=1`,
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -866,7 +866,7 @@ describe('tag', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -1030,7 +1030,7 @@ describe('tag', () => {
|
||||
tags: [
|
||||
`type=raw,priority=2000,foo`,
|
||||
`type=semver,pattern={{version}}`,
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -1189,7 +1189,7 @@ describe('latest', () => {
|
||||
{
|
||||
images: ['user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
@ -1246,7 +1246,7 @@ describe('latest', () => {
|
||||
{
|
||||
images: ['org/app', 'ghcr.io/user/app'],
|
||||
tags: [
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d.\\d"`
|
||||
]
|
||||
} as Inputs,
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ describe('transform', () => {
|
||||
`type=raw,foo`,
|
||||
`type=edge`,
|
||||
`type=semver,pattern={{version}}`,
|
||||
`type=match,"pattern=\\d{1,3}.\\d{1,3}.\\d{1,3}"`
|
||||
`type=match,"pattern=\\d.\\d.\\d",group=0`
|
||||
],
|
||||
[
|
||||
{
|
||||
@ -44,7 +44,7 @@ describe('transform', () => {
|
||||
"enable": "true",
|
||||
"prefix": "",
|
||||
"suffix": "",
|
||||
"pattern": "\\d{1,3}.\\d{1,3}.\\d{1,3}",
|
||||
"pattern": "\\d.\\d.\\d",
|
||||
"group": "0",
|
||||
"value": ""
|
||||
}
|
||||
@ -204,7 +204,7 @@ describe('parse', () => {
|
||||
false
|
||||
],
|
||||
[
|
||||
`type=match,enable=true,"pattern=^v(\\d{1,3}.\\d{1,3}.\\d{1,3})$",group=1`,
|
||||
`type=match,enable=true,"pattern=^v(\\d.\\d.\\d)$",group=1`,
|
||||
{
|
||||
type: Type.Match,
|
||||
attrs: {
|
||||
@ -212,7 +212,7 @@ describe('parse', () => {
|
||||
"enable": "true",
|
||||
"prefix": "",
|
||||
"suffix": "",
|
||||
"pattern": "^v(\\d{1,3}.\\d{1,3}.\\d{1,3})$",
|
||||
"pattern": "^v(\\d.\\d.\\d)$",
|
||||
"group": "1",
|
||||
"value": ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user