mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
@@ -86,7 +86,7 @@ var validDockerImageString = regexp.MustCompile(
|
||||
`(:\d+)?` + // optional port
|
||||
`/)?` + // optional hostname + port
|
||||
`([\w\d\-_\.][\w\d\-_\.\/]*/)?` + // optional url prefix
|
||||
`([\w\d\-_]+)` + // image name
|
||||
`([\w\d\-_\.]+)` + // image name
|
||||
`(:[\w\d\-_]+)?` + // optional image tag
|
||||
`$`,
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@ func TestSecretValidate(t *testing.T) {
|
||||
Name: "secretname",
|
||||
Value: "secretvalue",
|
||||
Events: []WebhookEvent{EventPush},
|
||||
Images: []string{"docker.io/library/mysql:latest", "alpine:latest", "localregistry.test:8443/mysql:latest", "localregistry.test:8443/library/mysql:latest", "docker.io/library/mysql", "alpine", "localregistry.test:8443/mysql", "localregistry.test:8443/library/mysql"},
|
||||
Images: []string{"docker.io/library/mysql:latest", "alpine:latest", "localregistry.test:8443/mysql:latest", "localregistry.test:8443/library/mysql:latest", "docker.io/library/mysql", "alpine", "localregistry.test:8443/mysql", "localregistry.test:8443/library/mysql", "code.thinkaboutit.tech/pandora/woodpecker-config-server.goapp"},
|
||||
},
|
||||
err: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user