From e44be41d94adf80b8b2c4c5a7ec99440af5e2f1b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 21 Oct 2026 09:43:17 -0400 Subject: [PATCH] Add nix pull through cache to CI builds. --- .webhook_bridge/pipeline-build-hash.yaml | 4 ++++ .webhook_bridge/pipeline-foreign-document-test.yaml | 4 ++++ .webhook_bridge/pipeline-format.yaml | 4 ++++ .webhook_bridge/pipeline-rust-clippy.yaml | 4 ++++ .webhook_bridge/pipeline-rust-test.yaml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.webhook_bridge/pipeline-build-hash.yaml b/.webhook_bridge/pipeline-build-hash.yaml index 2e85e6f..ab4906c 100644 --- a/.webhook_bridge/pipeline-build-hash.yaml +++ b/.webhook_bridge/pipeline-build-hash.yaml @@ -122,6 +122,10 @@ spec: - "$(params.image-name)-buildcache" - --cache-to - "$(params.image-name)-buildcache" + - --build-arg + - "SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)" + - --build-arg + - "NIX_SUBSTITUTERS=http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: REGISTRIES_CONF value: | unqualified-search-registries = ["docker.io"] diff --git a/.webhook_bridge/pipeline-foreign-document-test.yaml b/.webhook_bridge/pipeline-foreign-document-test.yaml index 85509e7..651ef10 100644 --- a/.webhook_bridge/pipeline-foreign-document-test.yaml +++ b/.webhook_bridge/pipeline-foreign-document-test.yaml @@ -122,6 +122,10 @@ spec: - "$(params.image-name)-buildcache" - --cache-to - "$(params.image-name)-buildcache" + - --build-arg + - "SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)" + - --build-arg + - "NIX_SUBSTITUTERS=http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: REGISTRIES_CONF value: | unqualified-search-registries = ["docker.io"] diff --git a/.webhook_bridge/pipeline-format.yaml b/.webhook_bridge/pipeline-format.yaml index 4a9e41e..8684d86 100644 --- a/.webhook_bridge/pipeline-format.yaml +++ b/.webhook_bridge/pipeline-format.yaml @@ -122,6 +122,10 @@ spec: - "$(params.image-name)-buildcache" - --cache-to - "$(params.image-name)-buildcache" + - --build-arg + - "SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)" + - --build-arg + - "NIX_SUBSTITUTERS=http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: REGISTRIES_CONF value: | unqualified-search-registries = ["docker.io"] diff --git a/.webhook_bridge/pipeline-rust-clippy.yaml b/.webhook_bridge/pipeline-rust-clippy.yaml index 553a3aa..1964d25 100644 --- a/.webhook_bridge/pipeline-rust-clippy.yaml +++ b/.webhook_bridge/pipeline-rust-clippy.yaml @@ -122,6 +122,10 @@ spec: - "$(params.image-name)-buildcache" - --cache-to - "$(params.image-name)-buildcache" + - --build-arg + - "SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)" + - --build-arg + - "NIX_SUBSTITUTERS=http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: REGISTRIES_CONF value: | unqualified-search-registries = ["docker.io"] diff --git a/.webhook_bridge/pipeline-rust-test.yaml b/.webhook_bridge/pipeline-rust-test.yaml index ea4378b..e60cfbc 100644 --- a/.webhook_bridge/pipeline-rust-test.yaml +++ b/.webhook_bridge/pipeline-rust-test.yaml @@ -122,6 +122,10 @@ spec: - "$(params.image-name)-buildcache" - --cache-to - "$(params.image-name)-buildcache" + - --build-arg + - "SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)" + - --build-arg + - "NIX_SUBSTITUTERS=http://ncps.nix-pull-through-cache.svc.cluster.local:80 https://cache.nixos.org" - name: REGISTRIES_CONF value: | unqualified-search-registries = ["docker.io"]