Skip to content

Commit b5cafe3

Browse files
authored
Added isRegex as example in MetaData test (#261)
1 parent a2cd791 commit b5cafe3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ of these checks are optional.
206206
#### Supported Fields:
207207

208208
- Env (`[]EnvVar`): A list of environment variable key/value pairs that should be set
209-
in the container.
209+
in the container. isRegex (*optional*) interpretes the value as regex.
210210
- Labels (`[]Label`): A list of image labels key/value pairs that should be set on the
211-
container.
212-
- Entrypoint (`[]string`): The entrypoint of the container
211+
container. isRegex (*optional*) interpretes the value as regex.
212+
- Entrypoint (`[]string`): The entrypoint of the container.
213213
- Cmd (`[]string`): The CMD specified in the container.
214214
- Exposed Ports (`[]string`): The ports exposed in the container.
215215
- Unexposed Ports (`[]string`): The ports **NOT** exposed in the container.
@@ -226,6 +226,9 @@ metadataTest:
226226
labels:
227227
- key: 'com.example.vendor'
228228
value: 'ACME Incorporated'
229+
- key: 'build-date'
230+
value: '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}$'
231+
isRegex: true
229232
exposedPorts: ["8080", "2345"]
230233
volumes: ["/test"]
231234
entrypoint: []

0 commit comments

Comments
 (0)