name: Build image on: pull_request: jobs: build-image: runs-on: node-22-bullseye container: env: USER: node NIX_CONFIG: experimental-features = nix-command flakes volumes: - /home/paul/nix-ci/nix-runner-nix:/nix - /home/paul/nix-ci/nix-runner-etc-nix:/etc/nix - /home/paul/nix-ci/nix-runner-home-node:/home/node options: --user 1000:1000 steps: - run: | if [ ! -f ~/.nix-profile/etc/profile.d/nix.sh ]; then bash <(curl -L https://nixos.org/nix/install) --no-daemon fi - run: | . ~/.nix-profile/etc/profile.d/nix.sh export NIX_CONFIG='experimental-features = nix-command flakes' env | grep NIX | tee --append "$GITHUB_ENV" - name: Checkout repo uses: actions/checkout@v4 - run: nix build .#image -o image.tar.gz - run: ls -lah