Skip to content

Merge pull request #81 from nationalarchives/renovate/actions-setup-p… #79

Merge pull request #81 from nationalarchives/renovate/actions-setup-p…

Merge pull request #81 from nationalarchives/renovate/actions-setup-p… #79

Workflow file for this run

name: Deploy lambda to AWS
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- run: sam build --use-container -m requirements/base.txt
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name ds-caselaw-ingester --s3-bucket ingester-test-2 --capabilities CAPABILITY_IAM --region eu-west-2