Skip to content

Commit 4814a13

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

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 13 additions & 9 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,20 +79,20 @@ 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=300s
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=300s
8987
9088
- name: Wait for test workload
9189
run: |
92-
kubectl wait --for=condition=complete job/flake-hello job/expr-hello job/path-hello -n nix-csi --timeout=120s
90+
kubectl wait --for=condition=complete job/flake-hello job/expr-hello job/path-hello -n nix-csi --timeout=300s
9391
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=300s
9896
9997
- name: Print node logs
10098
run: |
@@ -110,9 +108,15 @@ jobs:
110108
echo "=== Cache pod logs ==="
111109
kubectl logs -l app.kubernetes.io/name=cache -n nix-csi --tail -1 || true
112110
111+
echo "=== Cache pod describe ==="
112+
kubectl describe -l app.kubernetes.io/name=cache-n nix-csi || true
113+
113114
echo "=== Node pod logs ==="
114115
kubectl logs -l app.kubernetes.io/name=csi -n nix-csi --tail -1 || true
115116
117+
echo "=== Node pod describe ==="
118+
kubectl describe -l app.kubernetes.io/name=csi -n nix-csi || true
119+
116120
echo "=== Init pod logs ==="
117121
kubectl logs -l app.kubernetes.io/name=init -n nix-csi --tail -1 || true
118122
@@ -147,16 +151,16 @@ jobs:
147151
148152
- name: Wait for nix-csi node daemonset
149153
run: |
150-
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=60s
154+
kubectl rollout status daemonset/nix-node -n nix-csi --timeout=300s
151155
152156
- name: Wait for test workload
153157
run: |
154-
kubectl wait --for=condition=complete job/flake-hello job/expr-hello job/path-hello -n nix-csi --timeout=120s
158+
kubectl wait --for=condition=complete job/flake-hello job/expr-hello job/path-hello -n nix-csi --timeout=300s
155159
156160
- name: Delete jobs and verify CSI cleanup
157161
run: |
158162
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
163+
kubectl wait --for=delete pod -l "job-name in (flake-hello,expr-hello,path-hello)" -n nix-csi --timeout=300s
160164
161165
- name: Print node logs
162166
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)