Skip to content

Commit 0eb5719

Browse files
committed
feat(report): Use new deployment mechanism
1 parent 9439cfc commit 0eb5719

File tree

5 files changed

+271
-16
lines changed

5 files changed

+271
-16
lines changed

.github/workflows/report.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
run: sbt "project common" "compile" "test"
5454

5555
- name: Build project report
56-
run: sbt "project report" "compile" "test" "debian:packageBin"
56+
run: |
57+
sbt "project report" "compile" "test" "debian:packageBin"
58+
mkdir -p dist/report
59+
mv report/target/report_1.0-latest_all.deb dist/report/report-$GITHUB_RUN_NUMBER.deb
5760
5861
- name: Build project reportextractor
5962
run: |
@@ -87,7 +90,7 @@ jobs:
8790
configPath: report/conf/riff-raff.yaml
8891
contentDirectories: |
8992
report:
90-
- report/target/report_1.0-latest_all.deb
93+
- dist/report
9194
report-cfn:
9295
- cdk/cdk.out/Report-CODE.template.json
9396
- cdk/cdk.out/Report-PROD.template.json

cdk/bin/cdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export const reportPropsCode: ReportProps = {
9292
domainName: 'report.notifications.code.dev-guardianapis.com',
9393
instanceMetricGranularity: '5Minute',
9494
minAsgSize: 1,
95+
buildIdentifier: process.env.GITHUB_RUN_NUMBER ?? 'DEV',
9596
};
9697
new Report(app, 'Report-CODE', reportPropsCode);
9798

@@ -104,5 +105,6 @@ export const reportPropsProd: ReportProps = {
104105
domainName: 'report.notifications.guardianapis.com',
105106
instanceMetricGranularity: '1Minute',
106107
minAsgSize: 3,
108+
buildIdentifier: process.env.GITHUB_RUN_NUMBER ?? 'DEV',
107109
};
108110
new Report(app, 'Report-PROD', reportPropsProd);

0 commit comments

Comments
 (0)