Skip to content

Bump aws-actions/configure-aws-credentials from 1 to 6 #113

Bump aws-actions/configure-aws-credentials from 1 to 6

Bump aws-actions/configure-aws-credentials from 1 to 6 #113

name: Build email-mvt-archive
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
email-mvt-archive-build:
# Required by actions-assume-aws-role
permissions:
id-token: write
contents: read
name: email-mvt-archive-build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Use Node.js
uses: guardian/actions-setup-node@main
- name: Set the correct Node version using nvm
working-directory: ./cdk
shell: bash -l {0}
run: nvm install
- name: Build cdk
working-directory: ./cdk
run: |
npm install
npm run synth
- name: Set the correct Node version using nvm
working-directory: ./email-mvt-archive
shell: bash -l {0}
run: nvm install
- name: Build lambda
working-directory: ./email-mvt-archive
run: |
npm install
npm run lint
npm run build
pushd target
zip -r email-mvt-pixel-log-archiver-lambda.zip ./*
popd
- name: email-mvt-archive riff-raff
uses: guardian/actions-riff-raff@v1
with:
app: email-mvt-pixel-log-archiver
config: |
stacks:
- targeting
regions:
- eu-west-1
allowedStages:
- TEST
- PROD
deployments:
email-mvt-pixel-log-archiver-cloudformation:
type: cloud-formation
sources:
- cdk/cdk.out/EmailMVTPixelLogArchiver-TEST.template.json
- cdk/cdk.out/EmailMVTPixelLogArchiver-PROD.template.json
app: EmailMVTPixelLogArchiver
parameters:
cloudFormationStackName: EmailMVTPixelLogArchiver
templateStagePaths:
TEST: EmailMVTPixelLogArchiver-TEST.template.json
PROD: EmailMVTPixelLogArchiver-PROD.template.json
cloudFormationStackByTags: false
email-mvt-pixel-log-archiver-lambda:
type: aws-lambda
sources:
- email-mvt-archive/target/email-mvt-pixel-log-archiver-lambda.zip
parameters:
prefixStack: false
fileName: email-mvt-pixel-log-archiver-lambda.zip
functionNames:
- EmailMVTPixelLogArchiverLambda-