1 | const INFERRABLE_STAGES = [
|
2 | {
|
3 | name: 'development',
|
4 | inferRegex: /-(dev|development|uat|tst|test|qa)$/
|
5 | },
|
6 | {
|
7 | name: 'staging',
|
8 | inferRegex: /-(stg|staging)$/
|
9 | },
|
10 | {
|
11 | name: 'production',
|
12 | inferRegex: /-(prd|prod|production|admin|demo)$/
|
13 | }
|
14 | ]
|
15 |
|
16 | const INFERRABLE_STAGE_NAMES = INFERRABLE_STAGES.map((stage) => stage.name)
|
17 | const STAGE_NAMES = ['review'].concat(INFERRABLE_STAGE_NAMES)
|
18 |
|
19 | exports.inferrableStages = INFERRABLE_STAGES
|
20 | exports.inferrableStageNames = INFERRABLE_STAGE_NAMES
|
21 | exports.names = STAGE_NAMES
|