vrnp/.gitea/workflows/build-image.yml
Paul Brinkmeier fe88aa0c53
All checks were successful
Build image / build-image (pull_request) Successful in 3m35s
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
2025-10-06 00:54:45 +02:00

29 lines
847 B
YAML

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: id
- run: ls -lah /nix
- run: ls -lah /nix/var/nix
- run: bash <(curl -L https://nixos.org/nix/install) --help
- run: bash <(curl -L https://nixos.org/nix/install) --no-daemon
- name: Checkout repo
uses: actions/checkout@v4
- run: ls -lah
- run: |
. ~/.nix-profile/etc/profile.d/nix.sh
env | grep NIX
nix build .#image -o image.tar.gz