forked from fediversity/fediversity
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
27 lines
683 B
YAML
27 lines
683 B
YAML
when:
|
|
- event: manual
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: build
|
|
image: nixos/nix
|
|
commands:
|
|
- whoami
|
|
- pwd
|
|
- ls
|
|
- env
|
|
- |
|
|
mkdir -p ~/.ssh
|
|
echo "$CD_SSH_KEY" > ~/.ssh/id_ed25519
|
|
ls -l ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
- bash -c "strace -f -o ssh-agent.log ssh-agent -s"
|
|
- cat ssh-agent.log
|
|
- |
|
|
eval "$(ssh-agent -s)"
|
|
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'
|
|
environment:
|
|
CD_SSH_KEY:
|
|
from_secret: cd_ssh_key
|