Skip to content

Commit 3e31fce

Browse files
committed
fix cachix pushing of lixImage, skip scratchImage push
1 parent c93f305 commit 3e31fce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ jobs:
4343
unlink nix-images || true
4444
nix build --show-trace --file . lixImage.push --out-link nix-images
4545
./nix-images/bin/push
46-
cachix push nix-csi ./nix-images
4746
4847
- name: Build and push scratch image
4948
run: |
5049
unlink nix-scratches || true
5150
nix build --show-trace --file . scratchImage.push --out-link nix-scratches
5251
./nix-scratches/bin/push
53-
cachix push nix-csi ./nix-scratches
5452
5553
test-kind-cache:
5654
needs: build

liximage.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,16 @@ rec {
108108
pkgs.regctl
109109
pkgs.skopeo
110110
pkgs.gzip
111+
pkgs.cachix
111112
];
112113
text = # bash
113114
''
114115
skopeo login -u="$REPO_USERNAME" -p="$REPO_TOKEN" ${server}
115116
regctl registry login -u="$REPO_USERNAME" -p="$REPO_TOKEN" ${server}
116117
${copyToRegistry "aarch64-linux"}
117118
${copyToRegistry "x86_64-linux"}
119+
cachix push nix-csi ${images."aarch64-linux"}
120+
cachix push nix-csi ${images."x86_64-linux"}
118121
regctl index create ${repo}/lix:${pkgs.lruLix.version} \
119122
--ref ${imageRef "aarch64-linux"} \
120123
--ref ${imageRef "x86_64-linux"}

0 commit comments

Comments
 (0)