dotfiles/.woodpecker.yml

25 lines
792 B
YAML
Raw Normal View History

2022-11-08 13:48:19 +00:00
pipeline:
2022-11-08 16:24:13 +00:00
check:
2022-11-08 16:36:28 +00:00
image: nixpkgs/nix-flakes:latest
pull: true
2022-11-08 13:48:19 +00:00
commands:
2022-11-08 16:36:28 +00:00
- nix --no-sandbox flake info
- nix --no-sandbox develop -c statix check
2022-11-08 18:10:50 +00:00
volumes:
- /var/lib/woodpecker/cache/nixstore:/nix/store
2022-11-08 17:49:50 +00:00
push-to-sourcehut:
image: nixpkgs/nix-flakes:latest
pull: true
secrets: [ ssh_public_key ssh_private_key ]
commands:
- mkdir -p ~/.ssh/
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
- echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub
- echo "StrictHostKeyChecking=accept-new" >> ~/.ssh/config
- chmod 0400 ~/.ssh/ -R
2022-11-08 18:10:50 +00:00
- ls -hal ~/.ssh/
2022-11-08 17:49:50 +00:00
- git remote add sourcehut git@git.sr.ht:~cyplo/dotfiles
- git push sourcehut --tags --force-with-lease
- git push sourcehut --all --force-with-lease