From 46f6bb595e69f92d2a453e4be9748e2b2024f905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 1 Jan 2023 22:18:26 +0000 Subject: [PATCH] remove store usage --- .woodpecker/sync.yml | 15 ++++++--------- .woodpecker/test.yml | 9 +++------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.woodpecker/sync.yml b/.woodpecker/sync.yml index 965e6664..7934d6e8 100644 --- a/.woodpecker/sync.yml +++ b/.woodpecker/sync.yml @@ -1,14 +1,11 @@ pipeline: push_to_github: - image: nixpkgs/nix-flakes:latest + image: plugins/git pull: true commands: - - export AWS_ACCESS_KEY_ID="nix-builder" - - export AWS_SECRET_ACCESS_KEY="$MINIO_NIX_BUILDER_KEY" - - nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' --no-sandbox -c git lfs fetch --all - - nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' --no-sandbox -c git fetch --unshallow origin - - nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' --no-sandbox -c git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git - - nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' --no-sandbox -c git push github --all --force - - nix copy --all --to 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' - secrets: [ github_token , minio_nix_builder_key ] + - git lfs fetch --all + - git fetch --unshallow origin + - git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git + - git push github --all --force + secrets: [ github_token ] diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 695221be..f1bb958f 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -4,10 +4,7 @@ pipeline: image: nixpkgs/nix-flakes:latest pull: true commands: - - export AWS_ACCESS_KEY_ID="nix-builder" - - export AWS_SECRET_ACCESS_KEY="$MINIO_NIX_BUILDER_KEY" - time nix flake metadata - - time nix --no-sandbox --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' develop -c statix check - - time nix --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' flake check - - nix copy --all --to 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev' - secrets: [ minio_nix_builder_key ] + - time nix --no-sandbox develop -c statix check + - time nix flake check + secrets: [ ]