add drone config
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
clone:
|
||||||
|
image: reg.int.it2000.com.cn/devops/git
|
||||||
|
tags: true
|
||||||
|
skip_verify: true
|
||||||
|
|
||||||
|
step:
|
||||||
|
- name: build
|
||||||
|
image: reg.int.it2000.com.cn/library/golang:1.15.6-alpine3.12
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
environment:
|
||||||
|
GO111MODULE: on
|
||||||
|
GOPROXY: https://goproxy.io
|
||||||
|
commands:
|
||||||
|
- go clean
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
host:
|
||||||
|
path: /opt/go
|
||||||
|
- name: certs
|
||||||
|
host:
|
||||||
|
path: /etc/ssl/certs
|
||||||
|
- name: docker
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
Reference in New Issue
Block a user