Skip to content

Conversation

@whummer
Copy link
Member

@whummer whummer commented Sep 26, 2023

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 parameter preview-cmd, which can be used to define the build steps for the preview environment, using the value in AWS_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 the TODO comment in the main action.yml file in the repo

/cc @lukqw @HarshCasper

Copy link
Member

@lukqw lukqw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome to see that we're pushing this further into the hands of devs 🚀

@whummer
Copy link
Member Author

whummer commented Sep 29, 2023

FYI - build error unrelated to this PR, currently being fixed in the context of localstack/localstack#9253 👍

@whummer whummer merged commit a81707a into main Sep 29, 2023
@whummer whummer deleted the pr-preview branch September 29, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants