Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Container

A minimal Nix container for usage with Forgejo Actions

This is the environment the actions are meant to be run in.

Installation

Note: Currently, only aarch64 images are available.

A Forgejo runner is required. It can be configured to use the nixos-actions image:

runner:
  labels:
    - 'nixos:docker://codeberg.org/nix-actions/container:latest-<architecture>'

Usage

Now, jobs with run-on: nixos will run inside the container:

name: MyWorkflow

on:
  - push

jobs:
  Check:
    runs-on: nixos
    steps:
      - name: Hello
        run: nix run nixpkgs#hello