Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KubeSphere
kubesphere
提交
179fbdb6
K
kubesphere
项目概览
KubeSphere
/
kubesphere
通知
138
Star
32
Fork
5
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kubesphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
179fbdb6
编写于
3月 23, 2020
作者:
Z
zryfish
提交者:
GitHub
3月 23, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move to github actions (#1965)
* move to github actions
上级
fbd19048
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
62 addition
and
48 deletion
+62
-48
.github/workflows/build.yml
.github/workflows/build.yml
+59
-0
.travis.yml
.travis.yml
+0
-39
hack/docker_build.sh
hack/docker_build.sh
+3
-9
未找到文件。
.github/workflows/build.yml
0 → 100644
浏览文件 @
179fbdb6
name
:
Go
on
:
push
:
branches
:
-
'
master'
-
'
dev'
tags
:
-
'
release-*'
pull_request
:
branches
:
-
'
master'
-
'
dev'
jobs
:
build
:
name
:
Build
runs-on
:
ubuntu-latest
env
:
GO111MODULE
:
on
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
:
Check pr is properly formatted
run
:
diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools ./test)
-
name
:
Downloading go dependencies
run
:
go mod vendor
-
name
:
Install kubebuilder
run
:
bash hack/install_kubebuilder.sh
-
name
:
Build
run
:
make all
-
name
:
Uploading code coverage
env
:
CODECOV_TOKEN
:
${{ secrets.CODECOV_TOKEN }}
run
:
bash <(curl -s https://codecov.io/bash)
-
name
:
Get branch name
id
:
extract_branch
shell
:
bash
run
:
echo "##[set-output name=branch;]$(ehco ${GITHUB_REF#refs/heads/})"
-
name
:
Build and push docker images
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
if
:
github.event_name == 'push'
run
:
bash hack/docker_build.sh ${{ steps.extract_branch.outputs.branch }}
\ No newline at end of file
.travis.yml
已删除
100644 → 0
浏览文件 @
fbd19048
services
:
-
docker
language
:
go
dist
:
xenial
git
:
depth
:
false
go
:
-
"
1.13.x"
env
:
-
GO111MODULE=on
cache
:
directories
:
-
$HOME/gopath/pkg/mod
before_script
:
-
docker --version
-
bash hack/install_kubebuilder.sh
script
:
-
diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools)
-
make openapi
-
make all
before_install
:
-
go mod vendor
after_success
:
-
bash <(curl -s https://codecov.io/bash)
deploy
:
skip_cleanup
:
true
provider
:
script
script
:
bash hack/docker_build.sh
on
:
branch
:
master
hack/docker_build.sh
浏览文件 @
179fbdb6
...
...
@@ -3,16 +3,10 @@
set
-ex
set
-o
pipefail
# Default image repo
REPO
=
kubespheredev
TAG
=
latest
# check if build was triggered by a travis cronjob
if
[[
-z
"
$TRAVIS_EVENT_TYPE
"
]]
;
then
echo
"TRAVIS_EVENT_TYPE is empty, also normaly build"
elif
[[
$TRAVIS_EVENT_TYPE
==
"cron"
]]
;
then
TAG
=
dev-
$(
date
+%Y%m%d
)
fi
# Set tag to latest if no argument was given, normally was branch name
TAG
=
${
1
:-
latest
}
docker build
-f
build/ks-apigateway/Dockerfile
-t
$REPO
/ks-apigateway:
$TAG
.
docker build
-f
build/ks-apiserver/Dockerfile
-t
$REPO
/ks-apiserver:
$TAG
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录