Skip to content

Commit 3aafcbf

Browse files
committed
fix: push kubenixCI2 closure to cachix in build-manifests step
The nocache CI variant was failing because its nodeEnv store path was never pushed to cachix. The push script runs on both amd64 and arm64 runners, so kubenixCI2 (x86_64-only) cannot be added there. Instead, add a dedicated step in build-manifests (ubuntu-latest, x86_64) that builds kubenixCI2.deploymentScript and pushes its closure to cachix.
1 parent a95cf25 commit 3aafcbf

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ jobs:
9898
unlink nix-scratches || true
9999
nix build --show-trace --file . scratchImage.push --out-link nix-scratches
100100
./nix-scratches/bin/push
101+
- name: Push nocache variant store paths
102+
run: |
103+
DRV=$(nix-store -qd $(nix build --no-link --print-out-paths --file . kubenixCI2.deploymentScript 2>/dev/null))
104+
nix-store -qR --include-outputs "$DRV" | grep -v '\.drv$' | cachix push nix-csi
101105
test-kind-cache:
102106
needs: build-manifests
103107
runs-on: ubuntu-latest

default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ rec {
149149
#! ${pkgs.runtimeShell}
150150
export PATH=${lib.makeBinPath [ pkgs.cachix ]}:$PATH
151151
# ${lib.concatStrings (lib.attrValues inputs)}
152-
for drv in ${kubenixPush.deploymentScript} ${kubenixCI2.deploymentScript}; do
153-
nix-store -qR --include-outputs $(nix-store -qd "$drv") | grep -v '\.drv$' | cachix push nix-csi
154-
done
152+
nix-store -qR --include-outputs $(nix-store -qd ${kubenixPush.deploymentScript}) | grep -v '\.drv$' | cachix push nix-csi
155153
'';
156154

157155
# Push environments for both x86_64-linux and aarch64-linux to cachix.

0 commit comments

Comments
 (0)