Draft new post

This commit is contained in:
idanoo 2022-09-12 20:30:55 +12:00
parent fce5cde057
commit cde31666a7
Signed by: idanoo
GPG Key ID: 387387CDBC02F132
3 changed files with 23 additions and 0 deletions

View File

@ -1,6 +1,7 @@
pipeline: pipeline:
build: build:
image: alpine image: alpine
branches: main
commands: commands:
- apk update - apk update
- apk add openssh - apk add openssh

View File

@ -0,0 +1,22 @@
---
title: "Gitea and Woodpecker CI"
tags: ["gitea", "woodpecker", "cicd", "self hosting"]
date: "2022-09-12"
featuredimagepreview: "/woodpecker.jpg"
---
Another year, another post!
This time writing about my experience setting up and configuring [Gitea](https://gitea.io) and [Woodpecker](https://woodpecker-ci.org) as a self-hosted Git setup with full CI/CD pipelines.
I've decided to make the repo for this blog public with a [simple CI script](https://tinker.nz/idanoo/m2.nz/src/branch/main/.woodpecker.yml) configured to do hands free deployments. I'm aware that using `git pull` over SSH is a poor-mans CI script, but it works as a proof of concept and I do plan to tidy it up in the future™.
{{< image src="/woodpecker.jpg" caption="Woodpecker CI deploying this blog" >}}
### Gitea
I've run a Gitea server before so found it pretty seamless to get working. It was a matter of downloading a binary and setting some configuration flags (hostname, database config if needed, etc).
### Woodpecker CI
Coming from Gitlab CI it seems pretty basic, but in reality it can do almost everything you need. I'm still figuring out it's capbilities but it does the basic stuff

BIN
static/woodpecker.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB