Skip to content

Commit

Permalink
move jar to root for every assembly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLawes committed Aug 24, 2023
1 parent 8565702 commit 9e5d547
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/fake-breaking-news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ jobs:
- name: Compile, test and assembly
run: sbt "project fakebreakingnewslambda" "compile" "test" "assembly"

- name: Copy jar to root
run: cp fakebreakingnewslambda/target/scala-*/fakebreakingnewslambda.jar .

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:fakebreakingnewslambda
configPath: fakebreakingnewslambda/riff-raff.yaml
contentDirectories: |
fakebreakingnewslambda:
- fakebreakingnewslambda/target/scala-2.13/fakebreakingnewslambda.jar
- fakebreakingnewslambda.jar
fakebreakingnewslambda-cfn:
- fakebreakingnewslambda/fakebreakingnewslambda-cfn.yaml
5 changes: 4 additions & 1 deletion .github/workflows/football.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ jobs:
- name: Compile, test and assembly
run: sbt "project football" "compile" "test" "assembly"

- name: Copy jar to root
run: cp football/target/scala-*/football.jar .

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:football
configPath: football/riff-raff.yaml
contentDirectories: |
football:
- football/target/scala-2.13/football.jar
- football.jar
mobile-notifications-football-cfn:
- football/cfn.yaml
5 changes: 4 additions & 1 deletion .github/workflows/report-extractor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ jobs:
- name: Compile, test and assembly
run: sbt "project reportextractor" "compile" "test" "assembly"

- name: Copy jar to root
run: cp reportextractor/target/scala-*/reportextractor.jar .

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:reportextractor
configPath: reportextractor/riff-raff.yaml
contentDirectories: |
reportextractor:
- reportextractor/target/scala-2.13/reportextractor.jar
- reportextractor.jar
reportextractor-cfn:
- reportextractor/cfn.yaml
5 changes: 4 additions & 1 deletion .github/workflows/schedule-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ jobs:
- name: Compile, test and assembly
run: sbt "project schedule" "compile" "test" "assembly"

- name: Copy jar to root
run: cp schedulelambda/target/scala-*/schedule.jar .

- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:schedule
configPath: schedulelambda/riff-raff.yaml
contentDirectories: |
schedule:
- schedulelambda/target/scala-2.13/schedule.jar
- schedule.jar
schedule-cfn:
- schedulelambda/cfn.yaml
5 changes: 4 additions & 1 deletion .github/workflows/slo-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Compile, test and assembly
run: sbt "project slomonitor" "compile" "test" "assembly"

- name: Copy jar to root
run: cp slomonitor/target/scala-*/slomonitor.jar .

- name: CDK synth
run: |
cd cdk
Expand All @@ -61,7 +64,7 @@ jobs:
configPath: slomonitor/riff-raff.yaml
contentDirectories: |
slomonitor:
- slomonitor/target/scala-2.13/slomonitor.jar
- slomonitor.jar
mobile-notifications-slo-monitor-cfn:
- cdk/cdk.out/SloMonitor-CODE.template.json
- cdk/cdk.out/SloMonitor-PROD.template.json

0 comments on commit 9e5d547

Please sign in to comment.