Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Nightingale
提交
bda2eae9
N
Nightingale
项目概览
jobily
/
Nightingale
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
Nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
bda2eae9
编写于
3月 27, 2020
作者:
U
ulricqin
提交者:
GitHub
3月 27, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #37 from canghai908/master
use vendor
上级
def68cc5
6b786f2b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
28 addition
and
12 deletion
+28
-12
.github/workflows/n9e.yml
.github/workflows/n9e.yml
+26
-0
Dockerfile
Dockerfile
+0
-6
README.md
README.md
+0
-2
README_ZH.md
README_ZH.md
+0
-2
control
control
+2
-2
未找到文件。
.github/workflows/n9e.yml
0 → 100644
浏览文件 @
bda2eae9
name
:
Go
on
:
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
jobs
:
build
:
name
:
Build
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
1.13
uses
:
actions/setup-go@v1
with
:
go-version
:
1.13
id
:
go
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
-
name
:
Build
run
:
./control build
Dockerfile
浏览文件 @
bda2eae9
...
...
@@ -2,13 +2,7 @@ FROM golang AS builder
# RUN apk add --no-cache git gcc
WORKDIR
/app
# comment this if using vendor
# ENV GOPROXY=https://mod.gokit.info
# COPY go.mod go.sum ./
# RUN go mod download
COPY
. .
ENV
GOPROXY=https://mod.gokit.info
RUN
./control build docker
FROM
buildpack-deps:buster-curl
...
...
README.md
浏览文件 @
bda2eae9
...
...
@@ -16,8 +16,6 @@ mkdir -p $GOPATH/src/github.com/didi
cd
$GOPATH
/src/github.com/didi
git clone https://github.com/didi/nightingale.git
cd
nightingale
# export env[GOPROXY] if your network is not good
# export GOPROXY=https://mirrors.aliyun.com/goproxy/
./control build
```
...
...
README_ZH.md
浏览文件 @
bda2eae9
...
...
@@ -16,8 +16,6 @@ mkdir -p $GOPATH/src/github.com/didi
cd
$GOPATH
/src/github.com/didi
git clone https://github.com/didi/nightingale.git
cd
nightingale
# 如果网络环境不好可以尝试aliyun的mirror
# export GOPROXY=https://mirrors.aliyun.com/goproxy/
./control build
```
...
...
control
浏览文件 @
bda2eae9
...
...
@@ -136,13 +136,13 @@ status()
build_one
()
{
mod
=
$1
go build
-o
n9e-
${
mod
}
--tags
"md5"
src/modules/
${
mod
}
/
${
mod
}
.go
go build
-
mod
=
vendor
-
o
n9e-
${
mod
}
--tags
"md5"
src/modules/
${
mod
}
/
${
mod
}
.go
}
build_docker
()
{
mod
=
$1
go build
-o
bin/n9e-
${
mod
}
--tags
"md5"
src/modules/
${
mod
}
/
${
mod
}
.go
go build
-
mod
=
vendor
-
o
bin/n9e-
${
mod
}
--tags
"md5"
src/modules/
${
mod
}
/
${
mod
}
.go
}
build
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录