Skip to content

Commit

Permalink
deploy_stage or app
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider-vertical-relevance committed May 25, 2022
1 parent fa64d9c commit 13fca3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from stacks.handlers_stack import HandlersStack
from stacks.pipeline_stack import GitHubCDKPipelineStack

from git import Repo

from utils.environment import is_pipeline_synth

STACK_VERSION = "V0x10x0"
Expand All @@ -25,21 +27,26 @@
)

handlers_stack = HandlersStack(
app,
deploy_stage or app,
f"CBHandlersStack{STACK_VERSION}",
env=env,
pac_framework=app.node.try_get_context("control-broker/pac-framework"),
)

if continuously_deployed:
# try:
# current_branch = Repo().active_branch.name
# except TypeError:
# current_branch = None
pipeline_stack = GitHubCDKPipelineStack(
app,
f"CBPipelineStack{STACK_VERSION}",
f"CBCICDDeployment{STACK_VERSION}",
env=env,
**app.node.try_get_context(
"control-broker/continuous-deployment/github-config"
),
# github_repo_branch=current_branch
)
# pipeline_stack.pipeline.add_stage(deploy_stage)
pipeline_stack.pipeline.add_stage(deploy_stage)

app.synth()
2 changes: 1 addition & 1 deletion cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"aws"
],
"performance-testing-example-template": "supplementary_files/ExampleStack.template.json",
"control-broker/continuous-deployment/enabled": false,
"control-broker/continuous-deployment/enabled": true,
"control-broker/continuous-deployment/github-config": {
"github_repo_name": "control-broker",
"github_repo_owner": "VerticalRelevance",
Expand Down

0 comments on commit 13fca3b

Please sign in to comment.