forked from fediversity/fediversity
Compare commits
4 commits
8cd6b5df5d
...
9aac8687fc
| Author | SHA1 | Date | |
|---|---|---|---|
| 9aac8687fc | |||
| b22264ce50 | |||
| c8265e0613 | |||
| 1720d61590 |
8 changed files with 1 additions and 132 deletions
|
|
@ -1,17 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-deployment-basic
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-basic -L
|
|
||||||
devices:
|
|
||||||
- /dev/kvm:/dev/kvm
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-deployment-cli
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-cli -L
|
|
||||||
devices:
|
|
||||||
- /dev/kvm:/dev/kvm
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-deployment-panel
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-panel -L
|
|
||||||
devices:
|
|
||||||
- /dev/kvm:/dev/kvm
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-panel
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix-build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt -A tests.panel
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-peertube
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.test-peertube-service -L
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check-pre-commit
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- nix-build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt -A tests
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
## NOTE: NixOps4 does not provide a good “dry run” mode, so we instead check
|
|
||||||
## proxies for resources, namely whether their `.#vmOptions.<machine>` and
|
|
||||||
## `.#nixosConfigurations.<machine>` outputs evaluate and build correctly, and
|
|
||||||
## whether we can dry run `infra/proxmox-*.sh` on them. This will not catch
|
|
||||||
## everything, and in particular not issues in how NixOps4 wires up the
|
|
||||||
## resources, but that is still something.
|
|
||||||
steps:
|
|
||||||
- name: check-resources
|
|
||||||
image: nixos/nix
|
|
||||||
volumes:
|
|
||||||
- /nix:/mnt/nix:ro
|
|
||||||
commands:
|
|
||||||
- echo ==================== [ VM Options ] ====================
|
|
||||||
- |
|
|
||||||
set -euC
|
|
||||||
machines=$(nix eval --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' --impure --raw --expr 'with builtins; toString (attrNames (getFlake (toString ./.)).vmOptions)')
|
|
||||||
for machine in $machines; do
|
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~: $machine :~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.vmOptions-$machine
|
|
||||||
done
|
|
||||||
- echo ==================== [ NixOS Configurations ] ====================
|
|
||||||
- |
|
|
||||||
set -euC
|
|
||||||
machines=$(nix eval --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' --impure --raw --expr 'with builtins; toString (attrNames (getFlake (toString ./.)).nixosConfigurations)')
|
|
||||||
for machine in $machines; do
|
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~: $machine :~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.nixosConfigurations-$machine
|
|
||||||
done
|
|
||||||
|
|
@ -11,7 +11,7 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- /nix:/mnt/nix:ro
|
- /nix:/mnt/nix:ro
|
||||||
commands:
|
commands:
|
||||||
- nix-shell --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --run "npins --verbose update"
|
- nix-shell -vvv --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --store file:///nix/store --run "npins --verbose update"
|
||||||
# - name: Create PR
|
# - name: Create PR
|
||||||
# uses: https://github.com/KiaraGrouwstra/gitea-create-pull-request@f9f80aa5134bc5c03c38f5aaa95053492885b397
|
# uses: https://github.com/KiaraGrouwstra/gitea-create-pull-request@f9f80aa5134bc5c03c38f5aaa95053492885b397
|
||||||
# with:
|
# with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue