Skip to content

Commit e9890a0

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

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 7 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
@@ -81,11 +79,11 @@ jobs:
8179
8280
- name: Wait for nix-csi node daemonset
8381
run: |
84-
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=60s
82+
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=120s
8583
8684
- name: Wait for nix-csi cache pod
8785
run: |
88-
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=cache -n nix-csi --timeout=60s
86+
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=cache -n nix-csi --timeout=120s
8987
9088
- name: Wait for test workload
9189
run: |
@@ -94,7 +92,7 @@ jobs:
9492
- name: Delete jobs and verify CSI cleanup
9593
run: |
9694
kubectl delete job flake-hello expr-hello path-hello -n nix-csi
97-
kubectl wait --for=delete pod -l "job-name in (flake-hello,expr-hello,path-hello)" -n nix-csi --timeout=60s
95+
kubectl wait --for=delete pod -l "job-name in (flake-hello,expr-hello,path-hello)" -n nix-csi --timeout=120s
9896
9997
- name: Print node logs
10098
run: |
@@ -147,7 +145,7 @@ jobs:
147145
148146
- name: Wait for nix-csi node daemonset
149147
run: |
150-
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=60s
148+
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=120s
151149
152150
- name: Wait for test workload
153151
run: |
@@ -156,7 +154,7 @@ jobs:
156154
- name: Delete jobs and verify CSI cleanup
157155
run: |
158156
kubectl delete job flake-hello expr-hello path-hello -n nix-csi
159-
kubectl wait --for=delete pod -l "job-name in (flake-hello,expr-hello,path-hello)" -n nix-csi --timeout=60s
157+
kubectl wait --for=delete pod -l "job-name in (flake-hello,expr-hello,path-hello)" -n nix-csi --timeout=120s
160158
161159
- name: Print node logs
162160
run: |

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)