File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,21 +12,19 @@ jobs:
1212
1313 services :
1414 nacos :
15- image : nacos/nacos-server:v2.2.0-slim
15+ image : nacos/nacos-server:v2.2.3
1616 env :
1717 MODE : standalone
18- JVM_XMS : 512m
19- JVM_XMX : 512m
20- JVM_XMN : 256m
18+ PREFER_HOST_MODE : hostname
2119 ports :
2220 - 8848:8848
2321 - 9848:9848
2422 options : >-
25- --health-cmd="curl -f http://localhost:8848/nacos || exit 1 "
26- --health-interval=15s
27- --health-timeout=10s
28- --health-retries=10
29- --health-start-period=30s
23+ --health-cmd="curl -f http://localhost:8848/nacos/v1/console/health/readiness "
24+ --health-interval=10s
25+ --health-timeout=5s
26+ --health-retries=12
27+ --health-start-period=40s
3028
3129 steps :
3230 - name : Checkout code
Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ jobs:
6666 image : nacos/nacos-server:v2.2.3
6767 env :
6868 MODE : standalone
69- AUTH_ENABLE : false
69+ PREFER_HOST_MODE : hostname
7070 ports :
7171 - 8848:8848
7272 - 9848:9848
73- # Wait for Nacos to be fully ready
7473 options : >-
7574 --name nacos-server
7675 --health-cmd "curl -f http://localhost:8848/nacos/v1/console/health/readiness"
7776 --health-interval 10s
7877 --health-timeout 5s
79- --health-retries 10
78+ --health-retries 12
79+ --health-start-period 40s
8080 steps :
8181 - uses : actions/checkout@v4
8282
You can’t perform that action at this time.
0 commit comments