No description
Find a file
Tamipes 0594840ed3
Some checks failed
Build and Push docker image / buildAndPush (push) Failing after 1m40s
fix: can't use alias in actions, it seems like...
2026-05-29 16:28:14 +02:00
.github/workflows fix: can't use alias in actions, it seems like... 2026-05-29 16:28:14 +02:00
.gitignore doc: add README.md 2026-01-12 22:52:48 +01:00
flake.lock feat: initial commit 2026-01-12 18:53:31 +01:00
flake.nix fix: name clash nix 2026-05-29 16:15:40 +02:00
README.md feat: mark the minimal image as minimal and extend the defualt one 2026-05-29 16:08:37 +02:00

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"
  IMG_NAME="nix"
  nix build --extra-experimental-features "flakes nix-command" .
  docker load -i result
  docker image tag nix "$URL/$USERNAME/$IMG_NAME:latest"
  docker login "https://$URL"
  docker push "$URL/$USERNAME/$IMG_NAME"
  rm result # don't forget to cleanup the GC root

  # I also tag with the date, but this might be unneeded
  docker image tag nix "$URL/$USERNAME/$IMG_NAME:latest$(date --iso-8601)"
  docker push "$URL/$USERNAME/$IMG_NAME"

Extra info

  • These image are essentially still "based" on nixos/nix, but it builds it with nodejs(+extras) included. Checkout the flake.nix!