nixos-config/.woodpecker.yml
Christoph Heiss c8ab9d9f8b
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: convert sourcehut build manifest to woodpecker
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-06-30 23:45:08 +02:00

44 lines
1.1 KiB
YAML

---
when:
- event: push
clone:
- name: clone
image: woodpeckerci/plugin-git
settings:
depth: 0
partial: false
steps:
- name: prepare
image: docker.io/nixos/nix
environment:
NIX_CONFIG: 'experimental-features = nix-command flakes'
commands:
- nix-env -iA nixpkgs.gnused
- for f in $(find secrets/ -type f -name '*.nix'); do echo '{ }' > "$f"; done
- >-
sed -i
's/nixosConfigurations = builtins.mapAttrs mkSystem machines;/nixosConfigurations =\n builtins.trace (builtins.mapAttrs mkSystem machines) { };/'
flake.nix
- name: check-git-history
image: docker.io/nixos/nix
environment:
NIX_CONFIG: 'experimental-features = nix-command flakes'
depends_on:
- prepare
commands:
- nix-env -iA nixpkgs.curl nixpkgs.gnupg
- curl -L -o - 'https://c8h4.io/gpg.asc' | gpg --import
- nix run .#check-git-history
- name: flake-check
image: docker.io/nixos/nix
environment:
NIX_CONFIG: 'experimental-features = nix-command flakes'
depends_on:
- prepare
commands:
- nix flake check -L