Update 'deploy.yaml'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-19 16:59:32 +00:00
parent 28bf7fabfd
commit fc9f1d897e

View File

@@ -35,11 +35,7 @@ areas:
- status: error - status: error
message: Enter a valid MAC address message: Enter a valid MAC address
pass: pass:
_regex: ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ _regex: ^(?!(?:00[:-]){5}00)((?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$
events:
onChange:
- id: validate
type: Validate
- id: projectname - id: projectname
type: TextInput type: TextInput
properties: properties:
@@ -53,6 +49,11 @@ areas:
title: Hostname title: Hostname
label: label:
span: 5 span: 5
validate:
- status: error
message: Can only contain alphanumeric characters and hyphens; must be between 1 and 15 characters long
pass:
_regex: ^([a-zA-Z0-9]{1,15}|[a-zA-Z0-9][a-zA-Z0-9\-]{0,13}[a-zA-Z0-9])$
- id: ipaddress - id: ipaddress
required: true required: true
type: TextInput type: TextInput
@@ -69,6 +70,11 @@ areas:
placeholder: 255.255.255.0 placeholder: 255.255.255.0
label: label:
span: 5 span: 5
validate:
- status: error
# message: Enter a valid subnet mask
pass:
_regex: ^(?:(255|254|252|248|240|224|192|128|0+)(?:\.(?!$)|$)){4}$
- id: gateway - id: gateway
required: true required: true
type: TextInput type: TextInput
@@ -118,28 +124,26 @@ areas:
title: Start Deployment title: Start Deployment
icon: RocketOutlined icon: RocketOutlined
block: true block: true
requests: # requests:
- id: update_brand # - id: update_brand
type: MongoDBUpdateOne # MongoDb updateOne request to update the brand. # type: MongoDBUpdateOne # MongoDb updateOne request to update the brand.
connectionId: brands # connectionId: brands
properties: # properties:
filter: # filter:
_id: # _id:
_state: _id # Select the document that matches the document's _id that is in state. # _state: _id # Select the document that matches the document's _id that is in state.
update: # update:
$set: # $set:
name: # name:
_state: name # Insert the brand name we set in state. # _state: name # Insert the brand name we set in state.
description: # description:
_state: description # Insert the description name we set in state. # _state: description # Insert the description name we set in state.
updated_at: # updated_at:
_date: now # Set the updated_at date as current time. # _date: now # Set the updated_at date as current time.
events: events:
onClick: onClick:
- id: validate
type: Validate
- id: update_brand # Call the update_brand request. - id: update_brand # Call the update_brand request.
type: Request type: Request
params: update_brand params: update_brand
- id: link_to_brands # Link back to the brands page.
type: Link
params:
pageId: brands