Skip to content

Migrate the component-event-stream to GHA #5

Migrate the component-event-stream to GHA

Migrate the component-event-stream to GHA #5

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