From 7f283217ff25b6c091f9f4186af00283e1ccbccd Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 23 Apr 2024 08:18:54 +0800 Subject: [PATCH] ci: improve the ci stability - The github action would use different machines to run different jobs. So, we need to make sure the target image is correct. - Specific the runner with golang capability Signed-off-by: Vicente Cheng (cherry picked from commit ad3cbfea9107c07c1eb5a12fddca4784b2e3dbc0) --- .github/workflows/basic-ci.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/basic-ci.yaml b/.github/workflows/basic-ci.yaml index 2896166d..0149ac6f 100644 --- a/.github/workflows/basic-ci.yaml +++ b/.github/workflows/basic-ci.yaml @@ -16,7 +16,7 @@ jobs: validation: runs-on: - self-hosted - - Linux + - golang steps: - name: "Clone and check" uses: actions/checkout@v3 @@ -34,6 +34,8 @@ jobs: run: | BUILD_FOR_CI=true make ./ci/scripts/patch-ttl-repo.sh + echo "NDM override result as below:" + cat ci/charts/ndm-override.yaml main_jobs: needs: build runs-on: @@ -57,6 +59,11 @@ jobs: ./scripts/attach-disk.sh node1 sleep 30 popd + - name: "Patch Image target (for upgrade)" + run: | + ./ci/scripts/patch-ttl-repo.sh + echo "NDM override result as below:" + cat ci/charts/ndm-override.yaml - name: "Upgrade NDM" run: | pushd ndm-vagrant-rancherd