Commit c81b3d85 by shideqin

修改.drone

parent 94b25703
Pipeline #23237 passed with stage
in 0 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment