Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
数据应用
go-ssh-tunnel
提交
4c984814
G
go-ssh-tunnel
项目概览
数据应用
/
go-ssh-tunnel
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ssh-tunnel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4c984814
编写于
6月 26, 2021
作者:
李光春
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
454c1df2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
63 deletion
+0
-63
.codechina-ci.yml
.codechina-ci.yml
+0
-37
.codeeui.sh
.codeeui.sh
+0
-13
.drone.yml
.drone.yml
+0
-10
README.md
README.md
+0
-3
未找到文件。
.codechina-ci.yml
已删除
100644 → 0
浏览文件 @
454c1df2
# This file is a template, and might need editing before it works on your project.
image
:
golang:latest
variables
:
# Please edit to your GitLab project
REPO_NAME
:
gitlab.com/namespace/project
# The problem is that to be able to use go get, one needs to put
# the repository in the $GOPATH. So for example if your gitlab domain
# is gitlab.com, and that your repository is namespace/project, and
# the default GOPATH being /go, then you'd need to have your
# repository in /go/src/gitlab.com/namespace/project
# Thus, making a symbolic link corrects this.
before_script
:
-
mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
-
ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
-
cd $GOPATH/src/$REPO_NAME
stages
:
-
test
-
build
-
deploy
format
:
stage
:
test
script
:
-
go fmt $(go list ./... | grep -v /vendor/)
-
go vet $(go list ./... | grep -v /vendor/)
-
go test -race $(go list ./... | grep -v /vendor/)
compile
:
stage
:
build
script
:
-
go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary
artifacts
:
paths
:
-
mybinary
.codeeui.sh
已删除
100644 → 0
浏览文件 @
454c1df2
# 使用vendor文件夹构建
export
GO15VENDOREXPERIMENT
=
1
export
GOPROXY
=
https://goproxy.cn,direct
# 在工作目录创建源文件夹
mkdir
-p
$GOPATH
/src/dtapps/
# 拷贝代码到创建好的目录
cp
-rf
.
$GOPATH
/src/dtapps/
# 进入项目
cd
$GOPATH
/src/dtapps/
# 构建,在GOPATH下生成构建包
go mod tidy
# 列出文件
ls
-lh
\ No newline at end of file
.drone.yml
已删除
100644 → 0
浏览文件 @
454c1df2
kind
:
pipeline
type
:
docker
name
:
default
steps
:
-
name
:
dtapps
image
:
golang
commands
:
-
go mod tidy
-
ls -lh
README.md
浏览文件 @
4c984814
...
...
@@ -54,9 +54,6 @@
[
comment
]:
<>
(gitlab.com)
[
![gitlab (.com)
](
https://gitlab.com/dtapps/go-ssh-tunnel/badges/master/pipeline.svg
)
](https://gitlab.com/dtapps/go-ssh-tunnel)
[
comment
]:
<>
(codechina.csdn.net)
[
![codechina.csdn (.net)
](
https://codechina.csdn.net/dtapps/go-ssh-tunnel/badges/master/pipeline.svg
)
](https://codechina.csdn.net/dtapps/go-ssh-tunnel)
## 下载使用
-
把.example.config.yaml文件重命名为config.yaml
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录