-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 871 Bytes
/
deploy.yml
File metadata and controls
34 lines (28 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy to AWS Lambda
on:
push:
branches:
- main
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for AWS OIDC authentication
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
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: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Run Deployment Script
run: ./deploy-working.sh
env:
API_KEY: ${{ secrets.SCREENSHOT_API_KEY }}
RAPIDAPI_PROXY_SECRET: ${{ secrets.RAPIDAPI_PROXY_SECRET }}