-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (79 loc) · 2.62 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 'CI'
on:
workflow_dispatch:
push:
jobs:
ci:
permissions:
id-token: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
- uses: guardian/[email protected]
with:
private-ssh-keys: ${{ secrets.PRIVATE_INFRASTRUCTURE_CONFIG_DEPLOY_KEY }}
- name: Install dependencies
run: |
npm install
- name: build API
run: |
npm run api::build
- name: build Client
run: |
npm run client::build
- name: Build output-handler
run: |
npm run output-handler::build
- name: Build worker-capacity-manager
run: |
npm run worker-capacity-manager::build
- name: Package API/Client/Update
run: |
npm run package
- name: Package Worker
run: |
npm run worker::build
npm run worker::package
- name: CDK synth
run: |
npm run cdk::build
npm run cdk::lint
npm run cdk::synth
- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v4
with:
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: packages/cdk/riff-raff.yaml
buildNumberOffset: 120
projectName: investigations::transcription-service
contentDirectories: |
cdk.out:
- packages/cdk/cdk.out/TranscriptionService-CODE.template.json
- packages/cdk/cdk.out/TranscriptionService-PROD.template.json
transcription-service-api:
- target/api.zip
transcription-service-output-handler:
- target/output-handler.zip
transcription-service-worker-capacity-manager:
- target/worker-capacity-manager.zip
transcription-service-worker:
- packages/worker/dist/transcription-service-worker_1.0.0_all.deb
- name: Upload repository project to riff-raff
uses: guardian/actions-riff-raff@v4
with:
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: packages/cdk/riff-raff-repository.yaml
projectName: investigations::transcription-service-repository
contentDirectories: |
cdk.out:
- packages/cdk/cdk.out/TranscriptionServiceRepository.template.json