1.2 KiB
1.2 KiB
This repository is just a for auto updating the default nix docker image for forgejo runner on my instance.
Setup:
As you cannot run a forgejo runner with nixos/nix due to it not having node by default, you need to manually build and upload the first image. After that you can specify your instance's image as a base image for forgejo runner.
Manual upload of the first image:
USERNAME="tamipes"
URL="git.tami.moe"
nix build --extra-experimental-features "flakes nix-command" .
docker login "https://$URL"
docker load -i result
docker image tag nix "$URL/$USERNAME/nix:latest"
docker push "$URL/$username/nix"
# I also tag with the date, but this might be unneeded
docker image tag nix "$URL/$USERNAME/nix:latest$(date --iso-8601)"
docker push "$URL/$username/nix"
Extra info
- This image is essentially still "based" on
nixos/nix, but it builds it with nodejs included. Checkout the flake.nix!- it does not use
nixos/nixas a base image, but uses the same build script and adds extra stuff - nixpkgs manual
- nixos/nix build script
- it does not use