TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Run Database in GitHub Actions, Persisting Data to S3, and Access It Publicly

72 pointsby earayu5 months ago

8 comments

mg5 months ago
Is that really cheaper than to just use a VPS for $5&#x2F;month which offers compute and storage and everything?<p>The article says this about VPSs:<p><pre><code> You often end up paying for resources even when you&#x27;re not using them. </code></pre> But how is that different with S3? They also do not store the data for free.<p>And you can delete a VPS via API just like you can delete an S3 container.
评论 #42397507 未加载
评论 #42397626 未加载
评论 #42397528 未加载
that_guy_iain5 months ago
I get why these posts are popular but I always hate them. It&#x27;s this sort of activity that results in free tiers being limited and removed.
评论 #42397605 未加载
评论 #42397624 未加载
san1t15 months ago
I use an approach with Github Actions where if I need small amounts of persistent data between runs, I use a filesystem based off a fresh branch in the same repository.<p>That branch is rebased down to $tip so it shares no commits, and the &#x27;database&#x27; doesn&#x27;t affect development in trunk.<p>Obviously this doesn&#x27;t work for significant data analysis, but if it&#x27;s just a question of &#x27;what was the state at the last run&#x27; it&#x27;s cheap and easy.
评论 #42406283 未加载
sshine5 months ago
<p><pre><code> &gt; Here&#x27;s how to abuse GitHub Actions to run a database &gt; DISCLAIMER: DO NOT ABUSE GITHUB ACTIONS DO RUN A DATABASE! </code></pre> Meanwhile, a cloud VPS is down to €3.60&#x2F;mo.<p>Provisioning a VPS takes ~30-60 seconds, and bootstrapping them with cloudinit is an option most places, so you could even spin them up and down as you need. But honestly, the effort isn&#x27;t worth saving €3.60&#x2F;mo. over.
评论 #42398094 未加载
lijingcheng875 months ago
The benefits include not having to pay for the cost of owning the machine and disk, the computing nodes are only spun up when needed, and when your task is completed, the computing resources are not billed, and your data is stored on the cheaper S3.<p>These are the benefits brought by Wesql, a new database based on S3 that is compatible with MySQL.
testemailfordg25 months ago
You can persist data on Wasabi which is similar to S3 and pay even less...
fire_lake5 months ago
Or just use Docker Compose?
评论 #42397428 未加载
评论 #42398272 未加载
vivzkestrel5 months ago
next stop: run database inside notepad powered by blockchain