dotfiles/.woodpecker/sync.yml

15 lines
553 B
YAML

pipeline:
push_to_github:
image: nixpkgs/nix-flakes:latest
pull: true
commands:
- mkdir -p ~/.config/nix
- echo "store = /var/build-nix-store" >> ~/.config/nix/nix.conf
- echo "sandbox = false" >> ~/.config/nix/nix.conf
- nix develop -c git lfs fetch --all
- nix develop -c 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