CI: Build the Website with Hugo and publish it to Codeberg pages #4
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
RollenspielMonster/website!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/4/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This requires the following secrets to be configured in the Woodpecker
UI:
opinion.
we want to push changes to the Git repo.
The build steps will also trigger on 'cron'. However, it is currently
not possible to define the cronjob in the pipeline directly. We have to
create it in the Woodpecker UI instead. It can be found in 'Settings'
--> 'Crons'. I chose '0 42 2 * * *', i.e. every night at 2:42.
We also add the '.domains' file here. Previously it only existed on the
'pages' branch, but having it on the main branch makes it more explicit.
The file is copied over to the 'pages' branch after the CI builds a new
version of the website.
Once you get access to the CI, you'll have to enable the repository first and then configure the settings mentioned in the commit message.
If you're wondering what a "failed pipeline" for the 'pages' branch looks like:

I hope it's somewhat understandable what's going on. Basically Woodpecker will try to load and run any pipelines from a .woodpecker.yml file. The file doesn't exist on the 'pages' branch, which is why it fails. It doesn't matter that all our pipelines are limited to the 'master' branch. If Woodpecker were to find the file on the 'pages' branch, it would simply do nothing and show a green/successful pipeline for the commit on the branch instead.
I understand that this alone won't help with the donations page, but automating the website generation and getting the latest donation infos is not really related. That's why I thought we could tackle the CI first.