-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from go-atomci/v1.5.0-feat-app-refactor
release 1.5.0
- Loading branch information
Showing
100 changed files
with
3,312 additions
and
1,975 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Test and coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
- name: Go Module Downloads | ||
run: go mod tidy | ||
- name: Run coverage | ||
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... | ||
- name: Upload coverage to Codecov | ||
run: bash <(curl -s https://codecov.io/bash) |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- v1.5.0-feat-app-refactor | ||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
## 模板配置,承载完整最新的配置内容 | ||
[default] | ||
appname = atomci | ||
# 默认监听端口 | ||
httpport = 8080 | ||
runmode = dev | ||
copyrequestbody = true | ||
|
||
[log] | ||
logfile = "log/atomci.log" | ||
## log level | ||
# 0: LevelEmergency = iota | ||
# 1: LevelAlert | ||
# 2: LevelCritical | ||
# 3: LevelError | ||
# 4: LevelWarning | ||
# 5: LevelNotice | ||
# 6: LevelInformational | ||
# 7: LevelDebug | ||
level = 7 | ||
separate = ["error"] | ||
|
||
[DB] | ||
# 数据库相关配置,目前仅支持mysql5.7+ | ||
url = root:root@tcp(127.0.0.1:3306)/atomci?charset=utf8mb4&loc=Local | ||
debug = false | ||
rowsLimit = 5000 | ||
maxIdelConns = 100 | ||
maxOpenConns = 200 | ||
|
||
[ldap] | ||
# 支持配置LDAP | ||
host = ldap.xxx.com | ||
port = 389 | ||
bindDN = [email protected] | ||
bindPassword = Xxx.., | ||
userFilter = (samaccountname=%s) | ||
baseDN = OU=Xxx,DC=xx,DC=com | ||
|
||
[jwt] | ||
secret = changemeforsecurity | ||
|
||
[atomci] | ||
# atomci后端服务地址,用于k8s/jenkins进行回调,因此请确保地址是可以被k8s集群(jenkins agent)访问到 | ||
url = http://localhost:8080 | ||
|
||
# 通知配置 | ||
[notification] | ||
# 钉钉通知 | ||
dingEnable = 1 | ||
ding = "https://oapi.dingtalk.com/robot/send?access_token=faketoken" | ||
# 邮件通知 | ||
mailEnable = 1 | ||
smtpHost = "smtp.host" | ||
smtpPort = 465 | ||
smtpAccount = "[email protected]" | ||
smtpPassword = "pwd" |
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.