forgejo-actions/README.md
tamipes 0b4c3b11a1
All checks were successful
Build and Push docker image / buildAndPush (push) Successful in 2m21s
fix: README.md use $IMG_NAME more
2026-06-03 19:04:58 +02:00

1.4 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"
  IMG_NAME="nix"
  nix build --extra-experimental-features "flakes nix-command" .
  docker load -i result
  docker image tag "$IMG_NAME" "$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 "$IMG_NAME" "$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!