Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial action to create preview environments from PR builds #4

Merged
merged 8 commits into from
Sep 29, 2023

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

action.yml Outdated Show resolved Hide resolved
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 馃殌

finish/action.yml Show resolved Hide resolved
@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
0 of 2 checks passed
@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.

None yet

2 participants