-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (44 loc) · 1.27 KB
/
preview_create.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Create PR Preview
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- ./*.md
- LICENSE
- .circleci/*
- .gitlab-ci.yml
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install awscli-local
- name: Deploy Preview
uses: LocalStack/[email protected]
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
state-backend: ephemeral
state-action: start
skip-ephemeral-stop: 'true'
include-preview: 'true'
preview-cmd: |
# Add your custom deployment commands here.
# Below is an example for the Image resizer application.
bin/build_lambdas.sh && deployment/awslocal/deploy.sh