parent
b12087238b
commit
9f91ba6564
4 changed files with 30 additions and 23 deletions
17
.forgejo/workflows/main.yml
Normal file
17
.forgejo/workflows/main.yml
Normal 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/
|
||||
|
|
@ -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
|
||||
8
content/blog/leaving-github.md
Normal file
8
content/blog/leaving-github.md
Normal 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.
|
||||
19
flake.nix
19
flake.nix
|
|
@ -36,6 +36,11 @@
|
|||
|
||||
checks = eachSystem (pkgs: {
|
||||
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: {
|
||||
|
|
@ -52,20 +57,6 @@
|
|||
${pkgs.zola}/bin/zola build --minify
|
||||
'').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;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue