Skip to content

Commit

Permalink
ci: improve the ci stability
Browse files Browse the repository at this point in the history
    - 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 <[email protected]>
(cherry picked from commit ad3cbfe)
  • Loading branch information
Vicente-Cheng authored and bk201 committed Apr 30, 2024
1 parent 0fd7869 commit 32dadfd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/basic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
validation:
runs-on:
- self-hosted
- Linux
- golang
steps:
- name: "Clone and check"
uses: actions/checkout@v3
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 32dadfd

Please sign in to comment.