Skip to content

Merge pull request #275 from guardian/sbt-dependency-graph-fca958f981… #53

Merge pull request #275 from guardian/sbt-dependency-graph-fca958f981…

Merge pull request #275 from guardian/sbt-dependency-graph-fca958f981… #53

Workflow file for this run

name: CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
# Checkout the branch
- uses: actions/checkout@v3
- uses: guardian/setup-scala@v1
# Build CDK and Play (in sequence)
- run: ./scripts/ci.sh
shell: bash
# Fetch AWS credentials, allowing us to upload to Riff-Raff (well, S3)
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
# Upload our build artifacts to Riff-Raff (well, S3)
- uses: guardian/actions-riff-raff@v2
with:
projectName: geoip-db-refresher
buildNumberOffset: 221
config: |
stacks:
- ophan
regions:
- eu-west-1
deployments:
geoip-db-refresher:
type: aws-lambda
dependencies: [ cloudformation ]
parameters:
fileName: geoip-db-refresher.jar
bucketSsmLookup: true
lookupByTags: true
cloudformation:
type: cloud-formation
app: geoip-db-refresher
parameters:
templatePath: GeoipDbRefresher-PROD.template.json
contentDirectories: |
cloudformation:
- cdk/cdk.out/GeoipDbRefresher-PROD.template.json
geoip-db-refresher:
- target/geoip-db-refresher.jar