Skip to content

Merge pull request #47 from henrythasler/bugfix/codeql-findings #7

Merge pull request #47 from henrythasler/bugfix/codeql-findings

Merge pull request #47 from henrythasler/bugfix/codeql-findings #7

Workflow file for this run

name: Deploy Nodejs Lambda
on:
push:
branches: [ "master" ]
tags: [ '*' ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Use Node.js 20.x
uses: actions/setup-node@main
with:
node-version: 20.x
cache: 'npm'
- name: predeploy
run: |
npm ci
npm run predeploy
- name: Setup AWS CLI
uses: aws-actions/configure-aws-credentials@main
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: deploy to AWS lambda
run: aws lambda update-function-code --function-name tileserver --zip-file fileb://dist/function.zip
#run: aws lambda create-function --dry-run --function-name tileserver --description "Deploy commit ${{github.sha}} by ${{github.actor}}" --runtime nodejs18.x --handler handler --role ${{ secrets.AWS_LAMBDA_TILESERVER_ROLE }} --zip-file fileb://dist/function.zip