gitlab-ci: use bcacheup to upload things to the nix cache
This commit is contained in:
parent
98f53c5cd6
commit
42da93f99a
2 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ let
|
||||||
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
||||||
twitternuke = depot.go.twitternuke;
|
twitternuke = depot.go.twitternuke;
|
||||||
systemPathJSON = depot.ops.nixos.systemPathJSON;
|
systemPathJSON = depot.ops.nixos.systemPathJSON;
|
||||||
|
inherit (depot.go.nix) bcachegc bcacheup;
|
||||||
};
|
};
|
||||||
factorio = depot.ops.factorio;
|
factorio = depot.ops.factorio;
|
||||||
home-manager = depot.ops.home-manager-ext.built;
|
home-manager = depot.ops.home-manager-ext.built;
|
||||||
|
|
|
@ -25,7 +25,7 @@ let
|
||||||
script = [
|
script = [
|
||||||
"nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh"
|
"nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh"
|
||||||
"nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
|
"nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
|
||||||
"nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
|
"nix run -f ./ go.nix.bcacheup -c bcacheup --cache_url gs://lukegb-nix-cache ./result"
|
||||||
"cat ./result/other-systemPathJSON > systems.json"
|
"cat ./result/other-systemPathJSON > systems.json"
|
||||||
];
|
];
|
||||||
artifacts = {
|
artifacts = {
|
||||||
|
|
Loading…
Reference in a new issue