We could setup a CI to build and deploy the latest state.
So changes will be online ASAP after a PR was reviewed and merged.
This also saves time for more important tasks, like adding content or features.
Would you consider this?
Netlify has that feature but i think that part is not open source.
(isn’t a static site to not have PHP on the server?)
I just use rsync for manual deployment, but a CI could also do that when it has the SSH key configured.
When the CI builds all PRs it could also deploy via rsync/SSH, create a folder with the PR number and add comment to PR with URL. Sounds quiet simple. Have i missed anything?
(which CI do you use?)
I didn’t use Netlify because of it being not open source - I wanted to try it in the open first 😁
Here’s the current flow:
No dedicated CI tool or something similiar. I did this based on a tutorial I found and kept it this way as it works fine and keeps external dependencies low.
I just discovered this DevOps list for gitea in the documentation, that might contain a good solution? I’m inexperienced concerning CI. Right now, I don’t want to dig deeper into all the options honestly. But a concrete proposal on a CI is appreciated :)
I would like to use Drone CI for my projects. They offer free accounts for open source projects hosted on GitHub but i would rather use an instance hosted by Codeberg. Might happen someday Codeberg/Community#78
If it’s not important to have the history of all builds, one could just setup a server at home right now while waiting for Codeberg. I considered this...
Configuring it is easy and fun :)
When we have a CI instance i can create the config as i plan the same for my pages.
Update: This article actually explains in detail how to deploy a hugo site! It’s basically just starting two docker containers... i will see what i can do :)
I set up a drone server and agent on our VPS. Works nicely but still needs some configuring - just quickly wrote this config today and switched the development domains to the CI result. For the main branch, I still would like to know how to force a specific hugo version on build. The current environment variable isn’t working.
Thanks for pointing out - seemed to be open completely indeed. That’s the default configuration, see here - unbelievable. I wasn’t expecting that!
Turned the server off for now as I couldn’t easily fix this behaviour with this parameter.
EDIT: Fixed it. Now logging in should only work for me, see attachment.
EDIT 2: I also wrote this to the author of the Codeberg-Drone-tutorial. He wants to add this issue to the tutorial.
Deleting a branch is permanent. It CANNOT be undone. Continue?