diff --git a/.webhook_bridge/pipeline-build-homepage-staging.yaml b/.webhook_bridge/pipeline-build-homepage-staging.yaml index 657f2e1..c2279b4 100644 --- a/.webhook_bridge/pipeline-build-homepage-staging.yaml +++ b/.webhook_bridge/pipeline-build-homepage-staging.yaml @@ -142,6 +142,8 @@ spec: - "type=registry,ref=$(params.image-name):buildcache,mode=max,compression=zstd,compression-level=22,rewrite-timestamp=true,image-manifest=true,oci-mediatypes=true" - --opt - build-arg:SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time) + - --opt + - build-arg:NIX_SUBSTITUTERS="http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: BUILDKITD_TOML value: | debug = true diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile index 49f6160..533f680 100644 --- a/docker/server/Dockerfile +++ b/docker/server/Dockerfile @@ -2,15 +2,15 @@ # # Builder # +ARG NIX_SUBSTITUTERS="https://cache.nixos.org" FROM nixos/nix:2.31.3 AS builder +ARG NIX_SUBSTITUTERS RUN tee -a /etc/nix/nix.conf <