Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Create a GitHub action to make previews easier #31

Open
lucasfcosta opened this issue Aug 27, 2023 · 3 comments
Open

Create a GitHub action to make previews easier #31

lucasfcosta opened this issue Aug 27, 2023 · 3 comments

Comments

@lucasfcosta
Copy link
Member

No description provided.

@SaumyaBhushan
Copy link
Contributor

SaumyaBhushan commented Sep 9, 2023

Hi @lucasfcosta ! Can you please provide more details on this one ?

@lucasfcosta
Copy link
Member Author

Hi @SaumyaBhushan! Sure, apologies for the lack of detail.

Essentially, we want to make it easier for people to create pull-request previews using Layerform. That means creating a separate GitHub action that we could distribute for them.

That would require automatically configuring the .layerform/config file and making it easier for people to determine which part of Layerform's output is the actual preview link URL which would go into a comment.

Overall, the flow of such a GH action should be something like this:

  • User specifies back-end and provides credentials to S3 bucket through secrets configured on GH
  • User specifies the name of the layer to go up on every pull request
  • User specifies which output path is the link

Then:

  • User opens a PR
  • Layerform runs
  • URL is extracted from output and posted in the PR as a comment

This is a fairly involved task and requires some deep thought into how to design it in a way that's easier for people to use.

Please lmk what you think.

@SaumyaBhushan
Copy link
Contributor

Thank you for your response @lucasfcosta . Yes, I agree this is a fairly involved task and needs thinking into how to design it.

I am just getting started with this Project and I have worked on GitHub actions before. I will be happy to get involved but will need your support to accomplish this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants