Feature Request: Change CD from n8n to Forgejo Actions #261
Labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mafyuh/Auto-Homelab#261
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
Change CD from n8n to Forgejo Actions
Motivation
keep everything in Forgejo, no need for n8n
Detailed Description
n8n automation works great, however it would be nice to keep everything code defined and not using 3rd party services.
Since each app is on a different SSH host, need to filter the merged PR based if the app name is in it, then match that to the SSH host
Additional Context
AI Examples:
Well almost 100 commits later I have a working CI/CD platform all through Forgejo Actions.
Checkout https://git.mafyuh.dev/mafyuh/Auto-Homelab/actions/runs/125
Basically, CD.yml just filters down the name and host of the file that was affected by PR merge, sends that to AWX as extra_vars where I run this playbook on that specific host/folder, then wait 45 seconds and grab the logs and displays them right in the pipeline run.
Now all PR's have a CI Yamlint check, followed by CD all inhouse, no more n8n and no more Drone.
Still need to figure out what happens if 2 folders are affected (Adguard), guess we will see.
Maybe closed this a bit too prematurely, everything works as expected, however I didn't think about if 2 folders were changed with the same PR. It is really only AG-Home and Syncthing that have this happen, so need to wait for PR of one of those to start editing workflow to run on both machines.