forked from pub-solar/os
Use drone host volume for /nix/store to speed up build times
This commit is contained in:
parent
d551045ac5
commit
ae8f39b89a
22
.drone.yml
22
.drone.yml
|
@ -95,6 +95,9 @@ name: Check
|
|||
steps:
|
||||
- name: "Check"
|
||||
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
||||
volumes:
|
||||
- name: nix-store-cache
|
||||
path: /nix/store
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
@ -105,6 +108,11 @@ steps:
|
|||
- nix -Lv develop -c echo OK
|
||||
- nix -Lv develop --command bud --help
|
||||
|
||||
volumes:
|
||||
- name: nix-store-cache
|
||||
host:
|
||||
path: "/var/nix/build-store"
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
@ -114,8 +122,10 @@ steps:
|
|||
- name: "Build ISO"
|
||||
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
|
||||
volumes:
|
||||
- name: nix-store
|
||||
- name: file-exchange
|
||||
path: /var/nix/iso-cache
|
||||
- name: nix-store-cache
|
||||
path: /nix/store
|
||||
commands:
|
||||
- nix -Lv develop --command bud build bootstrap bootstrapIso
|
||||
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
|
||||
|
@ -123,7 +133,7 @@ steps:
|
|||
- name: "Publish ISO"
|
||||
image: appleboy/drone-scp
|
||||
volumes:
|
||||
- name: nix-store
|
||||
- name: file-exchange
|
||||
path: /var/nix/iso-cache
|
||||
settings:
|
||||
host:
|
||||
|
@ -147,12 +157,14 @@ trigger:
|
|||
- tag
|
||||
|
||||
volumes:
|
||||
- name: nix-store
|
||||
- name: file-exchange
|
||||
temp: {}
|
||||
- name: nix-store-cache
|
||||
host:
|
||||
path: "/var/nix/iso-cache"
|
||||
path: "/var/nix/build-store"
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 07b8c6165ef4d12754e43839d87d6a68d98436d3c5f8fbb6fee91c628211c1e7
|
||||
hmac: e7e602f8b3b21bbc0644dbd285c6d87b3dc5644437c8c693c92ced17de094bab
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue