From 60242fe82901ab90932eda91a64fef2d65685bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 25 Dec 2022 16:43:08 +0000 Subject: [PATCH] lfs fetch first --- .woodpecker/sync.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/sync.yml b/.woodpecker/sync.yml index 1441a9d0..8723a6af 100644 --- a/.woodpecker/sync.yml +++ b/.woodpecker/sync.yml @@ -4,9 +4,11 @@ pipeline: image: nixpkgs/nix-flakes:latest pull: true 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 - - nix --no-sandbox develop --eval-store /var/build-nix-store -c git lfs fetch --all - - nix --no-sandbox develop --eval-store /var/build-nix-store -c git push github --all --force + - mkdir -p ~/.config/nix + - echo "store = /var/build-nix-store" >> ~/.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 \ No newline at end of file