lfs fetch first

This commit is contained in:
Cyryl Płotnicki 2022-12-25 16:43:08 +00:00
parent fc955dc923
commit 60242fe829

View file

@ -4,9 +4,11 @@ pipeline:
image: nixpkgs/nix-flakes:latest image: nixpkgs/nix-flakes:latest
pull: true pull: true
commands: commands:
- nix --no-sandbox develop --eval-store /var/build-nix-store -c git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git - mkdir -p ~/.config/nix
- nix --no-sandbox develop --eval-store /var/build-nix-store -c git lfs fetch --all - echo "store = /var/build-nix-store" >> ~/.config/nix/nix.conf
- nix --no-sandbox develop --eval-store /var/build-nix-store -c git push github --all --force - 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 ] secrets: [ github_token ]
volumes: volumes:
- /var/lib/woodpecker/nix-store:/var/build-nix-store - /var/lib/woodpecker/nix-store:/var/build-nix-store