forked from pub-solar/os
Try nix store cache docker volume with privileged mode
This commit is contained in:
parent
d157e71a72
commit
0b7f1019af
15
.drone.yml
15
.drone.yml
|
@ -95,6 +95,7 @@ name: Check
|
||||||
steps:
|
steps:
|
||||||
- name: "Check"
|
- name: "Check"
|
||||||
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
||||||
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: nix-store-cache
|
- name: nix-store-cache
|
||||||
path: /tmp/build-store
|
path: /tmp/build-store
|
||||||
|
@ -104,15 +105,12 @@ steps:
|
||||||
- tag
|
- tag
|
||||||
environment:
|
environment:
|
||||||
NIX_FLAGS: "--store /tmp/build-store --print-build-logs --verbose"
|
NIX_FLAGS: "--store /tmp/build-store --print-build-logs --verbose"
|
||||||
SUBCMD_FLAGS: "--eval-store local"
|
|
||||||
commands:
|
commands:
|
||||||
- 'echo NIX_FLAGS: $NIX_FLAGS'
|
- 'echo NIX_FLAGS: $NIX_FLAGS'
|
||||||
- 'echo SUBCMD_FLAGS: $SUBCMD_FLAGS'
|
- nix $$NIX_FLAGS flake check
|
||||||
# DEBUG: try if nix build works with build store as cache
|
|
||||||
#- nix $$NIX_FLAGS flake check $$SUBCMD_FLAGS
|
|
||||||
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
|
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
|
||||||
- nix $$NIX_FLAGS develop $$SUBCMD_FLAGS --command echo OK
|
- nix $$NIX_FLAGS develop --command echo OK
|
||||||
- nix $$NIX_FLAGS develop $$SUBCMD_FLAGS --command bud --help
|
- nix $$NIX_FLAGS develop --command bud --help
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: nix-store-cache
|
- name: nix-store-cache
|
||||||
|
@ -127,6 +125,7 @@ name: Publish ISO
|
||||||
steps:
|
steps:
|
||||||
- name: "Build ISO"
|
- name: "Build ISO"
|
||||||
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
||||||
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: file-exchange
|
- name: file-exchange
|
||||||
path: /var/nix/iso-cache
|
path: /var/nix/iso-cache
|
||||||
|
@ -135,7 +134,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
nix --store /tmp/build-store --print-build-logs --verbose \
|
nix --store /tmp/build-store --print-build-logs --verbose \
|
||||||
develop --eval-store local --command \
|
develop --command \
|
||||||
bud build bootstrap bootstrapIso
|
bud build bootstrap bootstrapIso
|
||||||
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
|
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
|
||||||
|
|
||||||
|
@ -174,6 +173,6 @@ volumes:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 74162ec46f0cc1e66132a159c4a55472268cb880c8ba43fb477dd8befc6021d9
|
hmac: 82ee8582e7225b968e92dfd585d3d2e12205af1bd2946e915532d421d5ee50c6
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue