screwdriver-data-schema 22.0.3 → 22.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/regex.js +2 -2
- package/config/template.js +1 -1
- package/package.json +1 -1
package/config/regex.js
CHANGED
|
@@ -97,8 +97,8 @@ module.exports = {
|
|
|
97
97
|
// First group: SCM plugin name (e.g. github)
|
|
98
98
|
// Second group: SCM host name (e.g. github.com)
|
|
99
99
|
SCM_CONTEXT: /^([^:]+):([^:]+)$/,
|
|
100
|
-
// Image aliases can only contain A-Z,a-z,0-9,-,_
|
|
101
|
-
IMAGE_ALIAS: /^[\w
|
|
100
|
+
// Image aliases can only contain A-Z,a-z,0-9,-,_,.,:
|
|
101
|
+
IMAGE_ALIAS: /^[\w-.:]+$/,
|
|
102
102
|
// Valid Events for webhook
|
|
103
103
|
WEBHOOK_EVENT: /^~([\w-]+)$/,
|
|
104
104
|
// Provider region. e.g. us-west-1, ap-northeast-2
|
package/config/template.js
CHANGED
|
@@ -53,7 +53,7 @@ const TEMPLATE_MAINTAINER = Joi.string()
|
|
|
53
53
|
const TEMPLATE_IMAGES = Joi.object()
|
|
54
54
|
.pattern(Regex.IMAGE_ALIAS, Job.image)
|
|
55
55
|
.messages({
|
|
56
|
-
'object.unknown': '{{#label}} only supports the following characters A-Z,a-z,0-9,-,_'
|
|
56
|
+
'object.unknown': '{{#label}} only supports the following characters A-Z,a-z,0-9,-,_,.,:'
|
|
57
57
|
})
|
|
58
58
|
.min(1);
|
|
59
59
|
|