From 5d83a44a0773fdcefa2e437d0c5617befe1f7e00 Mon Sep 17 00:00:00 2001 From: w1ndyb0y Date: Wed, 23 Dec 2020 15:47:36 +0800 Subject: [PATCH] add drone config --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2ad2bd9 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file