Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
df1592ff
Commit
df1592ff
authored
Aug 22, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add versions
parent
82f1e1bd
Pipeline
#605
passed with stages
in 5 minutes and 27 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
.dockerignore
.dockerignore
+1
-0
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
Dockerfile
Dockerfile
+3
-1
No files found.
.dockerignore
View file @
df1592ff
...
@@ -9,3 +9,4 @@ logs/
...
@@ -9,3 +9,4 @@ logs/
device.json
device.json
data/
data/
vendor/
vendor/
/go-cqhttp
.gitignore
View file @
df1592ff
...
@@ -4,3 +4,4 @@ logs/
...
@@ -4,3 +4,4 @@ logs/
device.json
device.json
data/
data/
vendor/
vendor/
/go-cqhttp
.gitlab-ci.yml
View file @
df1592ff
...
@@ -6,6 +6,7 @@ variables:
...
@@ -6,6 +6,7 @@ variables:
GIT_DEPTH
:
"
1"
GIT_DEPTH
:
"
1"
CONTAINER_TEST_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_TEST_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:latest
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:latest
GO_CQHTTP_VERSION
:
v0.9.20-mycard
binary
:
binary
:
stage
:
build
stage
:
build
...
@@ -15,7 +16,7 @@ binary:
...
@@ -15,7 +16,7 @@ binary:
script
:
script
:
-
go env -w GO111MODULE=auto && go env -w CGO_ENABLED=0 && go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct
-
go env -w GO111MODULE=auto && go env -w CGO_ENABLED=0 && go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct
-
mkdir dist
-
mkdir dist
-
go build -ldflags "-s -w -extldflags '-static'" -o dist/cqhttp
-
go build -ldflags "-s -w -extldflags '-static'
-X 'github.com/Mrs4s/go-cqhttp/coolq.version=$GO_CQHTTP_VERSION'
" -o dist/cqhttp
artifacts
:
artifacts
:
paths
:
paths
:
-
dist/
-
dist/
...
...
Dockerfile
View file @
df1592ff
FROM
golang:1.14.2-alpine AS builder
FROM
golang:1.14.2-alpine AS builder
ARG
GO_CQHTTP_VERSION
ENV
GO_CQHTTP_VERSION ${GO_CQHTTP_VERSION:-v0.9.20-mycard}
RUN
go
env
-w
GO111MODULE
=
auto
\
RUN
go
env
-w
GO111MODULE
=
auto
\
&&
go
env
-w
CGO_ENABLED
=
0
\
&&
go
env
-w
CGO_ENABLED
=
0
\
...
@@ -10,7 +12,7 @@ WORKDIR /build
...
@@ -10,7 +12,7 @@ WORKDIR /build
COPY
./ .
COPY
./ .
RUN
cd
/build
\
RUN
cd
/build
\
&&
go build
-ldflags
"-s -w -extldflags '-static'"
-o
cqhttp
&&
go build
-ldflags
"-s -w -extldflags '-static'
-X 'github.com/Mrs4s/go-cqhttp/coolq.version=
$GO_CQHTTP_VERSION
'
"
-o
cqhttp
FROM
alpine:latest
FROM
alpine:latest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment