Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Nov 4, 2024
1 parent 497f232 commit 1de5729
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Provides a simple service to check for patterns in a commit message.

## Environment Variables

- `EXAMPLE_COMMIT_MESSAGE_VALIDATION_SERVICE__port <PORT_NUMBER>`
- `KIE_TOOLS_EXAMPLE__KIE_SANDBOX_COMMIT_MESSAGE_VALIDATION_SERVICE__port <PORT_NUMBER>`

Sets service port, otherwise it will use `env/index.js` port.

- `EXAMPLE_COMMIT_MESSAGE_VALIDATION_SERVICE__validators <validatorName1>:<validatorParameters1>;<validatorName2>:<validatorParameters2>...`
- `KIE_TOOLS_EXAMPLE__KIE_SANDBOX_COMMIT_MESSAGE_VALIDATION_SERVICE__validators <validatorName1>:<validatorParameters1>;<validatorName2>:<validatorParameters2>...`

Enables and configures validators. The value is a list of `;` separated validators that are parameterized with anything after `:`. e.g.: `Length:5-72;IssuePrefix:kie-issues#*` will enable the Lenght validator, with min 5 and max 72 characters, and will also enable the IssuePrefix validator, with the prefix pattern being `kie-issues#*`.

Expand Down
6 changes: 4 additions & 2 deletions examples/process-compact-architecture/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ const {

module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({
JBPM_COMPACT_ARCHITECTURE_EXAMPLE__managementConsoleImage: {
KIE_TOOLS_EXAMPLE__PROCESS_COMPACT_ARCHITECTURE__managementConsoleImage: {
default: `${kogitoManagementConsoleImageEnv.registry}/${kogitoManagementConsoleImageEnv.account}/${kogitoManagementConsoleImageEnv.name}:${kogitoManagementConsoleImageEnv.buildTag}`,
description: "The image for the Kogito Management Console.",
},
}),
get env() {
return {
processCompactArchitectureExample: {
kogitoManagementConsoleImage: getOrDefault(this.vars.JBPM_COMPACT_ARCHITECTURE_EXAMPLE__managementConsoleImage),
kogitoManagementConsoleImage: getOrDefault(
this.vars.KIE_TOOLS_EXAMPLE__PROCESS_COMPACT_ARCHITECTURE__managementConsoleImage
),
version: require("../package.json").version,
},
};
Expand Down

0 comments on commit 1de5729

Please sign in to comment.