forked from fediversity/fediversity
try store mounted read-only
Some checks failed
ci/woodpecker/manual/check-peertube Pipeline is pending
ci/woodpecker/manual/check-pre-commit Pipeline is pending
ci/woodpecker/manual/check-resources Pipeline is pending
ci/woodpecker/manual/update Pipeline is pending
ci/woodpecker/manual/cd Pipeline failed
ci/woodpecker/manual/check-data-model Pipeline was successful
ci/woodpecker/manual/check-mastodon Pipeline failed
ci/woodpecker/manual/check-panel Pipeline failed
ci/woodpecker/manual/check-deployment-panel Pipeline failed
ci/woodpecker/manual/check-deployment-basic Pipeline failed
ci/woodpecker/manual/check-deployment-cli Pipeline failed
Some checks failed
ci/woodpecker/manual/check-peertube Pipeline is pending
ci/woodpecker/manual/check-pre-commit Pipeline is pending
ci/woodpecker/manual/check-resources Pipeline is pending
ci/woodpecker/manual/update Pipeline is pending
ci/woodpecker/manual/cd Pipeline failed
ci/woodpecker/manual/check-data-model Pipeline was successful
ci/woodpecker/manual/check-mastodon Pipeline failed
ci/woodpecker/manual/check-panel Pipeline failed
ci/woodpecker/manual/check-deployment-panel Pipeline failed
ci/woodpecker/manual/check-deployment-basic Pipeline failed
ci/woodpecker/manual/check-deployment-cli Pipeline failed
- `--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/
This commit is contained in:
parent
1e99075184
commit
ba2870d659
2 changed files with 6 additions and 2 deletions
|
|
@ -13,7 +13,9 @@ steps:
|
|||
mkdir -p ~/.ssh
|
||||
echo "$CD_SSH_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.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'
|
||||
- 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue