Add forgejo action
Some checks failed
/ deploy (push) Failing after 2s

This commit is contained in:
Jan Kremer 2026-03-28 13:47:03 +01:00
parent b12087238b
commit 9f91ba6564
No known key found for this signature in database
4 changed files with 30 additions and 23 deletions

View file

@ -0,0 +1,17 @@
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy:
runs-on: native
steps:
- name: Checkout
run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} .
- name: Check
run: nix flake check
- name: Build
run: nix run .
- name: Deploy
run: cp -r public/. /var/www/jankremer.de/

View file

@ -1,9 +0,0 @@
+++
title = "Leaving GitHub"
date = 2026-03-27
description = ""
tags = []
draft = true
+++
About a year ago I wrote a post about my self hosting journey which ended with me shutting down my server

View file

@ -0,0 +1,8 @@
+++
title = "Leaving GitHub"
date = 2026-03-27
description = ""
tags = [ "git" ]
+++
As is trendy right now, I too took my repositories off of GitHub. The last piece was this website, which I hosted on GitHub Pages, but now runs on Oracle Free Tier. Not really sure this is better, but that's what I'm trying for now and I can always move it somewhere else easily. I'm also self hosting [Forgejo](https://git.jankremer.de) where I will be sharing my code from now on.

View file

@ -36,6 +36,11 @@
checks = eachSystem (pkgs: { checks = eachSystem (pkgs: {
formatting = treefmtEval.${pkgs.system}.config.build.check self; formatting = treefmtEval.${pkgs.system}.config.build.check self;
zola = pkgs.runCommand "zola-check" { buildInputs = [ pkgs.zola ]; } ''
cp -r ${self}/. .
zola check
touch $out
'';
}); });
apps = eachSystem (pkgs: { apps = eachSystem (pkgs: {
@ -52,20 +57,6 @@
${pkgs.zola}/bin/zola build --minify ${pkgs.zola}/bin/zola build --minify
'').outPath; '').outPath;
}; };
deploy = {
type = "app";
meta = {
description = "Deploy to nimbus (Oracle)";
homepage = "https://jankremer.de";
license = nixpkgs.lib.licenses.cc0;
};
program =
(pkgs.writeShellScript "deploy-website" ''
set -e
${pkgs.zola}/bin/zola build --minify
${pkgs.rsync}/bin/rsync -avP --delete public/ jan@jankremer.de:/var/www/jankremer.de/
'').outPath;
};
}); });
}; };
} }