dotfiles/.woodpecker/sync.yml

22 lines
1,010 B
YAML
Raw Normal View History

2022-11-08 13:48:19 +00:00
pipeline:
2022-11-08 19:41:48 +00:00
2022-12-03 16:06:51 +00:00
push_to_github:
image: nixpkgs/nix-flakes:latest
pull: true
2022-12-03 16:14:23 +00:00
commands:
2022-12-25 16:43:08 +00:00
- mkdir -p ~/.config/nix
2022-12-25 17:33:30 +00:00
- echo "store = /var/build-nix-store" >> /etc/nix/nix.conf
- echo "sandbox = false" >> /etc/nix/nix.conf
2022-12-25 17:51:02 +00:00
- echo "accept-flake-config = true" >> /etc/nix/nix.conf
- echo "fallback = true" >> /etc/nix/nix.conf
- echo "pure-eval = true" >> /etc/nix/nix.conf
- echo "stalled-download-timeout = 16" >> /etc/nix/nix.conf
- echo "max-silent-time = 32" >> /etc/nix/nix.conf
- echo "sync-before-registering = true" >> /etc/nix/nix.conf
2022-12-25 17:33:30 +00:00
- cat /etc/nix/nix.conf
2022-12-25 17:51:02 +00:00
- nix develop --no-sandbox --eval-store local --show-trace -c git lfs fetch --all
- git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
2022-12-25 16:43:08 +00:00
- nix develop -c git push github --all --force
2022-12-03 16:06:51 +00:00
secrets: [ github_token ]
2022-12-21 20:11:47 +00:00
volumes:
- /var/lib/woodpecker/nix-store:/var/build-nix-store