Skip to content

Merge pull request #111 from oslokommune/dependabot/npm_and_yarn/mult… #97

Merge pull request #111 from oslokommune/dependabot/npm_and_yarn/mult…

Merge pull request #111 from oslokommune/dependabot/npm_and_yarn/mult… #97

Workflow file for this run

name: Deploy Prod
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python 3.13
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.13'
- name: Install Python dependencies
run: pip install tox
- name: Test with tox
run: tox -e py,flake8,black
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: '18.x'
- name: Install NPM dependencies
run: npm install
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_PROD }}:role/github-deploy
aws-region: eu-west-1
- name: Sts GetCallerIdentity
run: aws sts get-caller-identity
- name: Deploy Lambda functions
run: ./node_modules/.bin/sls deploy -s prod