-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
linkxzhou
committed
Feb 15, 2025
1 parent
0b9adfe
commit c573860
Showing
1 changed file
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,13 @@ services: | |
component: fc | ||
actions: | ||
pre-deploy: | ||
- plugin: [email protected] # 使用阿里云官方Go插件管理环境 | ||
args: | ||
runtime: Go1.20 # 明确指定Go版本,确保环境一致性 | ||
- run: go env -w GOPROXY=https://goproxy.cn,direct # 设置国内代理加速 | ||
path: ./ | ||
- run: go mod tidy && go build -o http_bench . && chmod +x http_bench # 添加执行权限 | ||
path: ./ | ||
env: | ||
GOOS: linux # 强制指定Linux编译环境 | ||
GOARCH: amd64 # 明确CPU架构 | ||
props: | ||
region: cn-hangzhou | ||
service: | ||
|
@@ -38,22 +40,10 @@ services: | |
type: http | ||
config: | ||
authType: anonymous | ||
methods: | ||
- GET | ||
- POST | ||
- PUT | ||
- DELETE | ||
- HEAD | ||
- OPTIONS | ||
methods: [GET, POST, PUT, DELETE, HEAD, OPTIONS] | ||
customDomains: | ||
- domainName: auto | ||
protocol: HTTP | ||
routeConfigs: | ||
- path: /* | ||
methods: | ||
- GET | ||
- POST | ||
- PUT | ||
- DELETE | ||
- HEAD | ||
- OPTIONS | ||
methods: [GET, POST, PUT, DELETE, HEAD, OPTIONS] |