Compare commits

..

16 commits

Author SHA1 Message Date
cc4d4c280b
try store mounted read-only
- `--store` as per
https://blog.kotatsu.dev/posts/2023-04-21-woodpecker-nix-caching/
- `--eval-store` as per
https://kevincox.ca/2022/01/02/nix-in-docker-caching/
2025-08-04 18:08:41 +02:00
342f222632
schema 2025-08-04 18:08:41 +02:00
e71f32c4ba
max 5 2025-08-04 18:08:41 +02:00
8b23311d12
un-bash strace 2025-08-04 18:08:41 +02:00
6e1104a4d7
container dns
rm dns
2025-08-04 18:08:41 +02:00
0363a51a91
enable firewall 2025-08-04 18:08:41 +02:00
69d80b99e6
document nftables 2025-08-04 18:08:41 +02:00
b130e65d52
generalize firewall hole 2025-08-04 18:08:41 +02:00
6dd9f1918b
rm agent exec
plug hole in firewall

format
2025-08-04 18:08:41 +02:00
54f2197809
disable firewall nftables
disables nftables for woodpecker, just like for forgejo-ci
2025-08-04 18:08:41 +02:00
4a1f7f05a3
disable exec agent
make service group setting conditional

make secrets conditional

make things conditional

rm group
2025-08-04 18:08:41 +02:00
e01047070a
set service groups
add agent groups
2025-08-04 18:08:41 +02:00
1983128704
configure user
simplify secrets

set just group for system users
2025-08-04 18:08:41 +02:00
631d76e8bc
un-template
none like _file somehow?
2025-08-04 18:08:41 +02:00
72be0902d8
fix container agent 2025-08-04 18:08:41 +02:00
3eae32b43b
add woodpecker CI
add woodpecker

status: agents error `agent could not auth: individual agent not found
by token: sql: no rows in result set`

allow manual

set `image: bash` to initally test `local` woodpecker back-end

split CI jobs

image: `bash` (`local` back-end) -> `nixos/nix` (`docker` back-end)

add debugging lines to CD pipeline to debug error `Could not open a connection to your authentication agent`

add more debug prints to CD

even more debugging

continue debugging

debug harder

explicitly specify flakes as nixos/nix image is missing this

rm /home

update fedi203

wrap faulty statement

fix check-resources

split

strace pkg

un-strace
2025-08-04 18:08:41 +02:00
2 changed files with 8 additions and 5 deletions

View file

@ -12,14 +12,15 @@ steps:
- |
mkdir -p ~/.ssh
echo "$CD_SSH_KEY" > ~/.ssh/id_ed25519
ls -l ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- nix-shell -p strace --run 'strace -f -o ssh-agent.log ssh-agent -s'
- cat ssh-agent.log
- |
eval "$(ssh-agent -s)"
echo 'agent started'
ssh-add ~/.ssh/id_ed25519
- nix-shell --run 'eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && ssh-agent -s && SHELL=$(which bash) nixops4 apply -v default'
echo 'key added'
- nix-shell --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --run 'eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && ssh-agent -s && SHELL=$(which bash) nixops4 apply -v default'
environment:
CD_SSH_KEY:
from_secret: cd_ssh_key
volumes:
- /nix:/mnt/nix:ro

View file

@ -10,4 +10,6 @@ steps:
- name: check-deployment-basic
image: nixos/nix
commands:
- nix build --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-basic -L
- 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
volumes:
- /nix:/mnt/nix:ro