-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add Publish command #192
Comments
I'm not quite sure how we could make this work, Lagoon projects are very much tied to git repositories. So you essentially have to push the code, then trigger a deployment. |
The way the Netlify CLI works is the contents of a build directory are sent into netlify, based on an application ID. If the application is set to require review, it will return a preview URL, otherwise the content will be deployed. In the case of Lagoon, I would see something like this being an option:
|
Lagoon doesn't have a files staging area to send files to though, the only thing that comes close is if the environment that is deployed has a persistent volume attached, then you can sync the files into that persistent volume (as pod restarts do not impact a persistent volume). Triggering a build on the environment could then be done, but really there is no way for a Lagoon build to reach into that persistent volume except in pre or post rollout tasks as these are run within a running pod. So really, you'd be better off with an nginx deployed with a persistent volume that has the If I've completely misunderstood the actual feature request though, let me know. |
I opened this issue as requested in Slack as an aside, it's not something I'm invested in because it's not something I would do. The main reason I wouldn't do it is because it's already incredibly easy to use the Netlify CLI tool to create and deploy a statically generated site, and it's free to do so. Lagoon isn't really meant for that workflow. But that doesn't mean it isn't possible to improve support for SSG based deployments. |
Is your feature request related to a problem? Please describe.
As a user I would like a Publish command so I could deploy statically generated sites to Lagoon from command line.
Describe the solution you'd like
Add a Publish command.
The publish command should:
Describe alternatives you've considered
Build the static site on Lagoon
Additional context
The Netlify CLI is a good example.
The text was updated successfully, but these errors were encountered: