1
1
name : K8s CI
2
2
on :
3
3
workflow_call :
4
+ push :
5
+ branches :
6
+ - pytest
4
7
5
8
jobs :
6
9
k8s-ci :
7
- runs-on : ubuntu-latest
10
+ runs-on : ubuntu-latest-16-cores
8
11
steps :
9
12
- name : Bind mount /dev/sda1 to /nix
10
13
run : |
@@ -23,12 +26,13 @@ jobs:
23
26
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
24
27
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
25
28
nix-shell ./scripts/k8s/shell.nix --run "echo"
29
+ nix-shell ./scripts/helm/shell.nix --run "echo"
26
30
- name : Build binaries and images
27
31
id : build
28
32
run : |
29
- TAG=$(nix-shell ./shell.nix --run './scripts/python/generate-test-tag.sh')
33
+ TAG=$(nix-shell ./scripts/helm/ shell.nix --run './scripts/python/generate-test-tag.sh')
30
34
TEST_DIR=$(realpath $(mktemp -d ./test-dir-XXXXXX))
31
- nix-shell ./shell.nix --run "./scripts/python/tag-chart.sh $TAG"
35
+ nix-shell ./scripts/helm/ shell.nix --run "./scripts/python/tag-chart.sh $TAG"
32
36
RUSTFLAGS="-C debuginfo=0 -C strip=debuginfo" ./scripts/release.sh --tag $TAG --build-binary-out $TEST_DIR --no-static-linking --skip-publish --debug
33
37
echo "tag=$TAG" >> $GITHUB_OUTPUT
34
38
echo "bin=$TEST_DIR" >> $GITHUB_OUTPUT
50
54
nix-shell ./scripts/k8s/shell.nix --run "kubectl -n mayastor logs -l app=upgrade --all-containers=true"
51
55
52
56
k8s-ci-vm :
53
- runs-on : ubuntu-latest
57
+ runs-on : ubuntu-latest-16-cores
54
58
steps :
55
59
- uses : actions/checkout@v4
56
60
- uses : DeterminateSystems/nix-installer-action@v11
61
65
run : |
62
66
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
63
67
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
64
- nix-shell ./scripts/k8s /shell.nix --run "echo"
68
+ nix-shell ./scripts/helm /shell.nix --run "echo"
65
69
- name : Test on VM
66
70
run : |
67
- nix-shell ./scripts/k8s /shell.nix --run "cd chart; helm dependency update"
71
+ nix-shell ./scripts/helm /shell.nix --run "cd chart; helm dependency update"
68
72
nix-build ./tests/helm/test.nix --option sandbox false
0 commit comments