-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (35 loc) · 1.13 KB
/
ephemeral.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
name: LocalStack Ephemeral Instance Test
on: pull_request
jobs:
preview-test:
permissions: write-all
name: 'Test ephemeral instance workflow'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy Preview
uses: jenseng/dynamic-uses@v1
with:
uses: LocalStack/setup-localstack@${{ env.action-version }}
with: |-
{
"github-token": "${{ secrets.GITHUB_TOKEN }}",
"state-backend": "preview",
"state-action": "start",
"skip-preview-stop": "true"
}
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
# We want explicit shutdown
- name: Shutdown ephemeral instance
uses: jenseng/dynamic-uses@v1
with:
uses: LocalStack/setup-localstack@${{ env.action-version }}
with: |-
{
"github-token": "${{ secrets.GITHUB_TOKEN }}",
"state-backend": "preview",
"state-action": "stop"
}
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}