-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.27 KB
/
component-event-stream.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
name: Upload component-event-stream to riff raff
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
super_mode_calculator_build:
if: github.repository_owner == 'guardian'
# Required by actions-riff-raff
permissions:
id-token: write
contents: read
name: Upload component-event-stream
runs-on: ubuntu-latest
steps:
- name: Env
run: env
- name: Checkout repo
uses: actions/checkout@v3
- name: Configure AWS credentials # needed by actions-riff-raff
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Copy files to Riff Raff package
run: cp cfn.yaml riff-raff.yaml
working-directory: ./component-event-stream
- uses: guardian/actions-riff-raff@v2
with:
projectName: support:component-event-stream
configPath: ./component-event-stream/riff-raff.yaml
buildNumberOffset: 50
contentDirectories: |
component-event-stream-cloudformation:
- ./component-event-stream/cfn.yaml