add push to github

This commit is contained in:
Cyryl Płotnicki 2022-12-03 16:06:51 +00:00
parent 7371b5827e
commit b907a6c6bb

View file

@ -6,4 +6,12 @@ pipeline:
commands:
- nix --no-sandbox flake metadata
- nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos
secrets: [ github_token ]
push_to_github:
image: nixpkgs/nix-flakes:latest
pull: true
commands: |
git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
git push github --all --force
secrets: [ github_token ]