File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ Parameters:
35
35
Conditions :
36
36
TargetsMainBranch : !Equals [ !Ref GitHubBranch, main ]
37
37
DeployToAdhoc : !Equals [!Ref Mode, adhoc ]
38
- # DeployToTest and DeployToProd are the same right now
39
- DeployToTest : !Equals [!Ref Mode, standard ]
40
- DeployToProd : !Equals [ !Ref Mode, standard ]
38
+ DeployToTestAndProd : !Equals [!Ref Mode, standard ]
41
39
42
40
43
41
Resources :
@@ -269,7 +267,6 @@ Resources:
269
267
ConnectionArn : !Sub arn:aws:codestar-connections:us-east-1:${AWS::AccountId}:connection/${CodeStarConnectionResourceId}
270
268
FullRepositoryId : !Sub ${GitHubOwner}/${GitHubRepo}
271
269
BranchName : !Ref GitHubBranch
272
- DetectChanges : true
273
270
274
271
- Name : Build
275
272
Actions :
@@ -325,7 +322,7 @@ Resources:
325
322
- !Ref AWS::NoValue
326
323
327
324
- !If
328
- - DeployToTest
325
+ - DeployToTestAndProd
329
326
- Name : Deploy_To_Test
330
327
Actions :
331
328
- Name : app-deploy
@@ -351,7 +348,7 @@ Resources:
351
348
- !Ref AWS::NoValue
352
349
353
350
- !If
354
- - DeployToTest
351
+ - DeployToTestAndProd
355
352
- Name : Integration_Test
356
353
Actions :
357
354
- Name : integration-test
@@ -373,7 +370,7 @@ Resources:
373
370
- !Ref AWS::NoValue
374
371
375
372
- !If
376
- - DeployToProd
373
+ - DeployToTestAndProd
377
374
- Name : Deploy_To_Production
378
375
Actions :
379
376
- Name : app-deploy
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ echo Deploying Javabuilder CICD Pipeline
7
7
# - TARGET_BRANCH: Defaults to `main`, passed as a Parameter for "cicd/2-cicd/cicd.template.yml"
8
8
# - MODE: Can be 'standard' (default) or 'adhoc', passed as a Parameter for "cicd/2-cicd/cicd.template.yml"
9
9
# - GITHUB_BADGE_ENABLED: defaults to true, passed as a Parameter for "cicd/2-cicd/cicd.template.yml"
10
- # - STACK_NAME: defaults to an automated naming convention, no current use cases for changing this.
11
10
12
11
# 'Developer' role requires a specific service role for all CloudFormation operations.
13
12
if [[ $( aws sts get-caller-identity --query Arn --output text) =~ " assumed-role/Developer/" ]]; then
20
19
TARGET_BRANCH=${TARGET_BRANCH-' main' }
21
20
if [ " $TARGET_BRANCH " == " main" ]
22
21
then
23
- STACK_NAME=${STACK_NAME- ' javabuilder-cicd' }
22
+ STACK_NAME=" javabuilder-cicd"
24
23
else
25
- STACK_NAME=${STACK_NAME- " javabuilder-$TARGET_BRANCH -cicd" }
24
+ STACK_NAME=${" javabuilder-$TARGET_BRANCH -cicd" }
26
25
fi
27
26
28
27
MODE=${MODE-' standard' }
You can’t perform that action at this time.
0 commit comments