-
Notifications
You must be signed in to change notification settings - Fork 5
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow re-use of existing environment #5
base: main
Are you sure you want to change the base?
Conversation
Hi @Faolain , any thoughts on the above? Thanks! |
Hey @kzlar I responded on the issue itself but I'm curious what is the usecase behind using the destination environment if it already exists? Is this to continue deploying updates for a PR that has already been opened totally from a Github action side? (The reason I ask is that I have railway automatically handle all further updates beyond the initial PR open via the railway -> github integration where it watches the repo and autodeploys on subsequent prs, so in reality the environment creation should only be done once unless I'm misunderstanding) |
Hi @Faolain thank you for your reply. |
You're very welcome sorry for the delay. Hmm I don't think I understand, would you be able to describe your current workflow? I can describe how I use it, right now I use vercel, neon, and railway. I have to get the output of the environment to set it as my Vercel API endpoint, and at the same time take the neondb output and use that as an input for my PR environment on Railway. With the current setup ensuring that I have the Repo connected to Railway on the dashboard for github updates I use the following workflow:
As this action only deals with railway and doesn't affect neon (or any database for that matter). With the above setup it reuses the existing environment in that it creates the environment only once, from there on out the deployment trigger handles the update of the code itself so it doesn't need to redeploy over and over. The output of the first deploy should be fixed no? In my case I have it set to the PR name so pr-151.testapp-railway.? Does this make sense? Curious as to your setup. |
Thank you for your reply @Faolain and I appreciate the example you posted.
And the workflow has
On a branch new PR this works, but due to I realize that the domain doesn't change since it's the same PR, however my further downstream workflows rely on getting the domain - for example to run tests on the deployment or send an automated mail with the link. Does this help explain the issue? |
Hello,
Figured I'd take a stab at this issue.
Let me know if this looks good.
Thank you