22 lines
No EOL
1,010 B
YAML
22 lines
No EOL
1,010 B
YAML
pipeline:
|
|
|
|
push_to_github:
|
|
image: nixpkgs/nix-flakes:latest
|
|
pull: true
|
|
commands:
|
|
- mkdir -p ~/.config/nix
|
|
- echo "store = /var/build-nix-store" >> /etc/nix/nix.conf
|
|
- echo "sandbox = false" >> /etc/nix/nix.conf
|
|
- 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
|
|
- cat /etc/nix/nix.conf
|
|
- 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
|
|
- nix develop -c git push github --all --force
|
|
secrets: [ github_token ]
|
|
volumes:
|
|
- /var/lib/woodpecker/nix-store:/var/build-nix-store |