Add initial action to create preview environments from PR builds #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add initial Action to create preview environments from PR builds. Note that these features are in internal/beta state at this stage, hence are not exposed in the public docs of this Action.
The PR adds a new
preview/action.yml
file with an input parameterpreview-cmd
, which can be used to define the build steps for the preview environment, using the value inAWS_ENDPOINT_URL
as the target endpoint to deploy against.Demo repo here: localstack-samples/bref-localstack-sample#3
See here for the deployment steps in the demo app: https://github.com/whummer/bref-localstack-sample/blob/main/.github/workflows/ci-preview.yml#L21-L33
Side note: Based on these changes, we can further iterate on the functionality, and further streamline this Action in the future. 👍 For example, the
Start LocalStack
build step is still the main step, but may not be required in all cases. See also theTODO
comment in the mainaction.yml
file in the repo/cc @lukqw @HarshCasper