use object storage as substituter
This commit is contained in:
parent
615ac51fa7
commit
cf6d18b1f1
3 changed files with 8 additions and 8 deletions
|
@ -4,11 +4,11 @@ pipeline:
|
|||
image: nixpkgs/nix-flakes:latest
|
||||
pull: true
|
||||
commands:
|
||||
- nix develop --no-sandbox -c git lfs fetch --all
|
||||
- nix develop --no-sandbox -c git fetch --unshallow origin
|
||||
- nix develop --no-sandbox -c git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
|
||||
- nix develop --no-sandbox -c git push github --all --force
|
||||
- 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 ]
|
||||
|
|
|
@ -4,10 +4,10 @@ pipeline:
|
|||
image: nixpkgs/nix-flakes:latest
|
||||
pull: true
|
||||
commands:
|
||||
- time nix flake metadata
|
||||
- time nix --no-sandbox develop -c statix check
|
||||
- time nix flake check
|
||||
- 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 ]
|
||||
|
|
|
@ -27,5 +27,5 @@
|
|||
builders-use-substitutes = true
|
||||
'';
|
||||
nix.distributedBuilds = true;
|
||||
nix.settings.substituters = ["nix-builder@bolty" "https://cache.nixos.org/"];
|
||||
nix.settings.substituters = ["s3://nix-store?endpoint=objects.cyplo.dev&scheme=https®ion=cyplodev" "https://cache.nixos.org/"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue