dwyl / dbschema-demo

🍔 Showcase of a Postgres database schema generated by DbSchema via GitHub Actions
GNU General Public License v2.0
1 stars 0 forks source link

Create micro-demo using basic schema just to showcase DbSchema #1

Closed nelsonic closed 1 week ago

nelsonic commented 2 months ago

@LuchoTurtle as discussed on our call; 📞 We need to isolate the setup of DbSchema using GitHub Actions :octocat: So that we can confirm that it's working in a tiny repo before using it for work-work. 🏦

Todo 📝

.then ... 🤞

Bonus Level 👾

Once this is all done - hopefully doesn't take more than a couple of hours given all the work you've already done - we can use it for work-work and hopefully deploy a single page with the schema in our docs. 🤞

LuchoTurtle commented 2 months ago

Okay 👌 .

Though I'd like some clarification from their side on the licensing and how it would effect this -> https://github.com/wise-coders/dbschema/issues/132#issuecomment-2342386293.

nelsonic commented 2 months ago

For sure the licensing is an open question. ❓ 🙄 But given that work 🏦 has the license and will gladly pay more if requested, 💰 I'm not concerned that it will get resolved. 👌 Thanks for making progress on this. 🙏

LuchoTurtle commented 2 months ago

I think I need to know the license type we do have to continue making progress on this. HTML5 documentation generation is locked under the Pro edition -> https://dbschema.com/editions.html.

nelsonic commented 2 months ago

@LuchoTurtle please assume that money is no object and we have the most premium deluxe gold-plated diamond-encrusted VIP tier of license. 🔑 And crack on. 🙏

LuchoTurtle commented 2 months ago

The thing is normally, the sample script generates an HTML5 documentation from a DbSchema project file.

image

The problem is that saving a project file is a Pro feature.

image

I'm trying to circumvent the problem by creating the project within the Groovy script. But the documentation is really barebones and I can only go for some sample scripts found in https://dbschema.com/documentation/automation-api.html to go by.

Another thing that is bugging me is that I need to find a way to force the Docker to exit the command as an error (1) if the groovy script fails. As it stands, it doesn't. Even if it fails, the step is ran successfully (check https://github.com/dwyl/dbschema-demo/actions/runs/10840480256). got it fixed.

... 🫤