Skip to content

Commit 7bc0b19

Browse files
authored
update README for upcoming release (#32)
1 parent 4ae40bc commit 7bc0b19

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: LocalStack Test
22
on:
3-
push:
4-
paths-ignore:
5-
- ./*.md
6-
- LICENSE
73
pull_request:
84
paths-ignore:
95
- ./*.md
@@ -137,10 +133,10 @@ jobs:
137133

138134
- name: Run AWS Commands
139135
run: |
140-
awslocal s3 rb s3://test
141136
awslocal s3 mb s3://test
142-
awslocal sqs delete-queue --queue-url $(awslocal sqs get-queue-url --queue-name test-queue --output text)
137+
awslocal s3 rb s3://test
143138
awslocal sqs create-queue --queue-name test-queue
139+
awslocal sqs delete-queue --queue-url $(awslocal sqs get-queue-url --queue-name test-queue --output text)
144140
145141
- name: Save the State Artifact
146142
uses: jenseng/dynamic-uses@v1

.github/workflows/ephemeral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
"skip-ephemeral-stop": "true",
2222
"preview-cmd": ${{ toJSON(env.PREVIEW_CMD) }},
2323
"lifetime": 5,
24+
"extension-auto-install": "localstack-extension-mailhog",
2425
}
2526
env:
2627
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
@@ -29,7 +30,6 @@ jobs:
2930
awslocal s3 mb s3://test-bucket
3031
awslocal sqs create-queue --queue-name=test-queue
3132
echo "Deploy is done."
32-
EXTENSION_AUTO_INSTALL: "localstack-extension-mailhog"
3333
3434
- name: Assertion step
3535
run: |

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A GitHub Action to setup [LocalStack](https://github.com/localstack/localstack)
1010
- Installing [LocalStack AWS CLI](https://github.com/localstack/awscli-local), a thin wrapper around the `aws` command line interface for use with LocalStack to run integration tests over AWS services.
1111
- Export/import [LocalStack state](https://docs.localstack.cloud/user-guide/state-management/export-import-state/) as an artifact
1212
- Save/load [LocalStack Cloud Pods](https://docs.localstack.cloud/user-guide/state-management/cloud-pods/)
13-
- Start/stop a [LocalStack Ephemeral Instance](https://docs.localstack.cloud/user-guide/cloud-sandbox/application-previews/) _(EXPERIMENTAL)_
13+
- Start/stop a [LocalStack Ephemeral Instance](https://docs.localstack.cloud/user-guide/cloud-sandbox/ephemeral-instance/) _(PREVIEW)_
1414

1515
## Usage
1616

@@ -76,7 +76,7 @@ If the key is not found LocalStack by default falls back to the CE edition and d
7676

7777
> **NOTE**: The `LOCALSTACK_API_KEY` environment variable is required to be set to **save/load** LocalStack's state either as a Cloud Pod or as a file artifact.
7878

79-
### Manage App Preview (Ephemeral Instance)
79+
### Manage Application Previews (on an Ephemeral Instance)
8080
```yml
8181
uses: LocalStack/setup-localstack@$v0.2.0
8282
with:
@@ -106,12 +106,15 @@ with:
106106
107107
| Input | Description | Default |
108108
| ------------------ | -------------------------------------------------------------------------------- | -------- |
109+
| `auto-load-pod` | Which pod to load on startup of LocalStack (application preview) | `None` |
109110
| `ci-project` | Name of the CI project to track in LocalStack Cloud | |
110111
| `configuration` | Configuration variables to use while starting LocalStack container | `None` |
112+
| `extension-auto-install` | Which extensions to install on startup of LocalStack (application preview) | `None` |
111113
| `github-token` | Github token used to create PR comments | |
112114
| `image-tag` | Tag of the LocalStack Docker image to use | `latest` |
113115
| `include-preview` | Whether to include the created Ephemeral Instance URL in the PR comment | `false` |
114116
| `install-awslocal` | Whether to install the `awslocal` CLI into the build environment | `true` |
117+
| `lifetime` | How long an ephemeral instance should live | 30 |
115118
| `preview-cmd` | Command(s) used to create a Ephemeral Instance of the PR (can use `$AWS_ENDPOINT_URL`) | |
116119
| `skip-ephemeral-stop` | Skip stopping LocalStack Ephemeral Instance | `false` |
117120
| `skip-startup` | Explicitly prevent LocalStack start up, only installs CLI(s). Recommended to manage state later on in the pipeline or start up an ephemeral instance. | `false` |

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ runs:
133133
{
134134
"github-token": ${{ toJSON(inputs.github-token) }},
135135
"preview-cmd": ${{ toJSON(inputs.preview-cmd) }},
136-
"auto-load-pod": ${{ toJSON(inputs.state-name) }}
136+
"extension-auto-install": ${{ toJSON(inputs.extension-auto-install )}},
137+
"auto-load-pod": ${{ toJSON(inputs.auto-load-pod) }},
138+
"lifetime": ${{ toJSON(inputs.lifetime )}}
137139
}
138140
139141
# Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable

0 commit comments

Comments
 (0)