Compare commits

..

6 Commits

Author SHA1 Message Date
patrick 0a8fa316d9 Merge pull request 'feat: add nix store volume' (#6) from patrick/nix-caching into master
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline is pending Details
Reviewed-on: #6
2023-07-31 20:18:42 -07:00
Patrick Cleavelin b54754df87 don't print nix store path
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-31 22:10:19 -05:00
Patrick Cleavelin 29105e2ba2 mount the entire nix directory as a volume
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-31 21:36:39 -05:00
Patrick Cleavelin c1238feee2 update flake tag
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-31 19:24:03 -05:00
Patrick Cleavelin 3e91bdabfd don't plop nix store files on root of CI server
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-07-31 17:49:32 -05:00
Patrick Cleavelin ab05681ebf add nix store volume
ci/woodpecker/pr/woodpecker Pipeline failed Details
2023-07-31 16:37:42 -05:00
2 changed files with 7 additions and 3 deletions

View File

@ -1,16 +1,19 @@
steps:
build-docker-image:
when:
event: push
image: alpine:edge
commands:
- apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
- echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker
- cp $(nix build --extra-experimental-features nix-command --extra-experimental-features flakes --print-out-paths .#docker) ./memejoin-rs.tar.gz
volumes:
- ${AGENT_NIX_STORE_PATH}:/nix
publish-image:
when:
- event: tag
branch: master
event: tag
image: docker
secrets: [ forgejo_token ]
commands:
@ -20,3 +23,4 @@ steps:
- 'docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${AGENT_NIX_STORE_PATH}:/nix

View File

@ -8,7 +8,7 @@
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
tag = "0.1.4_3-alpha";
tag = "v0.1.4_4-alpha";
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;