Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit b9ff77d

Browse files
committed
fix(cd): update repos
1 parent 2709522 commit b9ff77d

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

cdk/stacks/ContinuousDeployment.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import * as S3 from '@aws-cdk/aws-s3'
77
import { BuildActionCodeBuild, WebAppCD } from '../resources/WebAppCD'
88
import { CONTINUOUS_DEPLOYMENT_STACK_NAME, CORE_STACK_NAME } from './stackName'
99
import { enabledInContext } from '../helper/enabledInContext'
10+
import { info } from '../helper/note'
11+
import * as chalk from 'chalk'
1012

1113
/**
1214
* This is the CloudFormation stack sets up the continuous deployment of the project.
@@ -34,6 +36,13 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
3436
) {
3537
super(parent, CONTINUOUS_DEPLOYMENT_STACK_NAME)
3638

39+
const { core, deviceUI, webApp } = properties
40+
41+
info(
42+
'Continuous Deployment',
43+
`Monitoring ${chalk.white(`${core.owner}/${core.repo}@${core.branch}`)}`,
44+
)
45+
3746
const checkFlag = enabledInContext(this.node)
3847

3948
// CD for the Web App is implied by enabled CD (in that case this Stack exists) and enabled Web App
@@ -48,6 +57,14 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
4857
description:
4958
'Whether the continuous deployment of the Web App is enabled or disabled.',
5059
})
60+
if (enableWebAppCD) {
61+
info(
62+
'Continuous Deployment',
63+
`Monitoring ${chalk.white(
64+
`${webApp.owner}/${webApp.repo}@${webApp.branch}`,
65+
)}`,
66+
)
67+
}
5168

5269
// CD for the Device Simulator Web Application is implied by enabled CD (in that case this Stack exists) and enabled Device Simulator Web Application
5370
const enableDeviceUICD = checkFlag({
@@ -61,6 +78,14 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
6178
description:
6279
'Whether the continuous deployment of the Device Simulator Web Application is enabled or disabled.',
6380
})
81+
if (enableDeviceUICD) {
82+
info(
83+
'Continuous Deployment',
84+
`Monitoring ${chalk.white(
85+
`${deviceUI.owner}/${deviceUI.repo}@${deviceUI.branch}`,
86+
)}`,
87+
)
88+
}
6489

6590
// CD for the Device Simulator Web Application is implied by enabled CD (in that case this Stack exists) and enabled Device Simulator Web Application
6691
const enabledFirmwareCiCD = checkFlag({
@@ -75,8 +100,6 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
75100
'Whether the continuous deployment of the Firmware CI is enabled or disabled.',
76101
})
77102

78-
const { core, deviceUI, webApp } = properties
79-
80103
const codeBuildRole = new IAM.Role(this, 'CodeBuildRole', {
81104
assumedBy: new IAM.ServicePrincipal('codebuild.amazonaws.com'),
82105
inlinePolicies: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@
146146
"saga"
147147
],
148148
"webApp": {
149-
"repository": "https://github.com/NordicSemiconductor/app.git",
149+
"repository": "https://github.com/NordicSemiconductor/asset-tracker-cloud-app-js.git",
150150
"branch": "saga"
151151
},
152152
"deviceUI": {
153-
"repository": "https://github.com/NordicSemiconductor/device-ui.git",
153+
"repository": "https://github.com/NordicSemiconductor/asset-tracker-cloud-device-ui-js.git",
154154
"branch": "saga"
155155
}
156156
},

0 commit comments

Comments
 (0)