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
4ae84307
Commit
4ae84307
authored
Aug 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add single binary build
parent
e469346f
Pipeline
#417
failed
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
.gitlab-ci.yml
.gitlab-ci.yml
+28
-1
No files found.
.gitlab-ci.yml
View file @
4ae84307
...
@@ -10,7 +10,19 @@ variables:
...
@@ -10,7 +10,19 @@ variables:
before_script
:
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build
:
binary
:
stage
:
build
tags
:
-
linux
image
:
golang:1.14.2-alpine
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
-
mkdir dist
-
go build -ldflags "-s -w -extldflags '-static'" -o dist/cqhttp
artifacts
:
-
dist
docker
:
stage
:
build
stage
:
build
tags
:
tags
:
-
docker
-
docker
...
@@ -18,8 +30,22 @@ build:
...
@@ -18,8 +30,22 @@ build:
-
docker build --pull -t $CONTAINER_TEST_IMAGE .
-
docker build --pull -t $CONTAINER_TEST_IMAGE .
-
docker push $CONTAINER_TEST_IMAGE
-
docker push $CONTAINER_TEST_IMAGE
upload_to_minio
:
stage
:
deploy
dependencies
:
-
binary
tags
:
-
linux
image
:
python
script
:
-
pip install -U awscli
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/cqhttp
only
:
-
master
deploy_latest
:
deploy_latest
:
stage
:
deploy
stage
:
deploy
dependencies
:
[]
tags
:
tags
:
-
docker
-
docker
script
:
script
:
...
@@ -31,6 +57,7 @@ deploy_latest:
...
@@ -31,6 +57,7 @@ deploy_latest:
deploy_tag
:
deploy_tag
:
stage
:
deploy
stage
:
deploy
dependencies
:
[]
tags
:
tags
:
-
docker
-
docker
variables
:
variables
:
...
...
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