Skip to content

Commit

Permalink
Slightly improve regex to check for valid image versions (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 5, 2024
1 parent 2fe76b9 commit ff6d3f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
"properties": {
"aarch64": {
"default": "homeassistant/aarch64-base:latest",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?([\\-\\w{}]+)/([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?(([\\-\\w{}]+)/)?([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"type": "string"
},
"amd64": {
"default": "homeassistant/amd64-base:latest",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?([\\-\\w{}]+)/([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?(([\\-\\w{}]+)/)?([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"type": "string"
},
"armhf": {
"default": "homeassistant/armhf-base:latest",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?([\\-\\w{}]+)/([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?(([\\-\\w{}]+)/)?([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"type": "string"
},
"armv7": {
"default": "homeassistant/armv7-base:latest",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?([\\-\\w{}]+)/([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?(([\\-\\w{}]+)/)?([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"type": "string"
},
"i386": {
"default": "homeassistant/i386-base:latest",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?([\\-\\w{}]+)/([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"pattern": "^([a-zA-Z\\-\\.:\\d{}]+/)*?(([\\-\\w{}]+)/)?([\\-\\w{}]+)(:[\\.\\-\\w{}]+)?$",
"type": "string"
}
},
Expand Down

0 comments on commit ff6d3f3

Please sign in to comment.