Skip to content

Commit cd60a07

Browse files
committed
fix action syntax & change ci runner (#176)
## What this PR does / why we need it: 1. fix action syntax error, cc https://github.com/matrixone-cloud/observability/actions/runs/7164207564 2. 更换 runner > 因为ci集群从成都迁移到广州,大家在matrixone-cloud组织下使用tke runner的话记得更新一下啊 > amd64-tke-moc -> amd64-moc-guangzhou-medium8 > amd64-moc-dind -> amd64-moc-guangzhou-dind
1 parent 3ef6031 commit cd60a07

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.github/workflows/alertrules-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
alertmanager-test:
14-
runs-on: amd64-tke-moc
14+
runs-on: amd64-moc-guangzhou-medium8
1515
name: Alert Rules Check And Unit Test
1616
steps:
1717
- uses: actions/checkout@v3

.github/workflows/chart_release_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
release_check:
1414
permissions:
1515
contents: write # for helm/chart-releaser-action to push chart release and create a release
16-
runs-on: amd64-tke-moc
16+
runs-on: amd64-moc-guangzhou-medium8
1717

1818
steps:
1919
- name: Checkout

.github/workflows/ci.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ on:
66
types: [ opened, synchronize, reopened ]
77
branches: [ main,'[0-9]+.[0-9]+.[0-9]+' ]
88
paths:
9-
- '**'
10-
- '!charts/**'
11-
- '!docs/**'
12-
- '!etc/**'
13-
- '!example/**'
14-
- '!test/**'
15-
- '!.dockerignore'
16-
- '!.gitignore'
17-
- '!.gitmodules'
18-
- '!README.md'
9+
- 'pkg/**'
10+
- 'cmd/**'
11+
- 'lib/**'
12+
- 'test/**'
13+
- 'optools/**'
14+
- '.github/observability/**'
15+
# 调整触发逻辑, 减少本任务触发
16+
#- '**'
17+
#- '!charts/**'
18+
#- '!docs/**'
19+
#- '!etc/**'
20+
#- '!example/**'
21+
#- '!test/**'
22+
#- '!.dockerignore'
23+
#- '!.gitignore'
24+
#- '!.gitmodules'
25+
#- '!README.md'
1926
# should test obervability when change package
2027
# - '!.github/**' ## 这个去不掉
2128
# - '!./go.mod'
@@ -28,7 +35,7 @@ concurrency:
2835

2936
jobs:
3037
ut:
31-
runs-on: amd64-tke-moc
38+
runs-on: amd64-moc-guangzhou-medium8
3239
name: UT Test for MO-Agent and MO-Ruler
3340
steps:
3441
- uses: actions/checkout@v3
@@ -48,7 +55,7 @@ jobs:
4855
echo "apisecret=${{ secrets.S3APISECRET }}" >> $GITHUB_ENV
4956
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV
5057
51-
- names: Set netrc
58+
- name: Set netrc
5259
# 为解决私有仓库拉取问题
5360
uses: extractions/netrc@v1
5461
with:
@@ -162,7 +169,7 @@ jobs:
162169
run: docker-compose -f "./.github/observability/docker-compose.yaml" down
163170

164171
sca:
165-
runs-on: amd64-tke-moc
172+
runs-on: amd64-moc-guangzhou-medium8
166173
name: SCA Test on Ubuntu/x64
167174

168175
steps:

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
docker:
22-
runs-on: amd64-tke-moc
22+
runs-on: amd64-moc-guangzhou-medium8
2323
steps:
2424

2525
- uses: actions/checkout@v3

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
permissions:
88
contents: read
99
pull-requests: write
10-
runs-on: amd64-tke-moc
10+
runs-on: amd64-moc-guangzhou-medium8
1111
steps:
1212
- name: Add Label by files changed
1313
# more details in https://github.com/actions/labeler

0 commit comments

Comments
 (0)