Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
张光博
/
pay_center
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c81b3d85
authored
Aug 14, 2025
by
shideqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改.drone
parent
94b25703
Pipeline
#23237
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
.drone.yml
+0
-10
No files found.
.drone.yml
View file @
c81b3d85
...
...
@@ -9,16 +9,6 @@ steps:
pull
:
if-not-exists
commands
:
-
echo -n "$(git-buildnumber)" > .tags
-
name
:
go-build
image
:
registry.cn-hangzhou.aliyuncs.com/ad-pub-hub/golang:1.22.2-alpine3.18
environment
:
GOOS
:
linux
GOARCH
:
amd64
CGO_ENABLED
:
0
commands
:
-
export GIT_REPO_TAG=$(cat .tags)
-
go env -w GOPROXY=https://goproxy.io,direct
-
go build -o main main.go
#构建docker镜像并上传镜像仓库
-
name
:
build-image
image
:
plugins/docker:20.13
...
...
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