浏览代码

添加drone

double.huang 5 年之前
父节点
当前提交
0bc25738ce
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      .drone.yml

+ 16 - 0
.drone.yml

@@ -0,0 +1,16 @@
+clone:
+  depth: 50
+  recursive: true
+  path: oauth
+build:
+  image: docker.i2edu.net/golang:1.13
+  commands:
+    - CGO_ENABLED=0 go build -a -ldflags '-s'
+    - tar zcf oauth.tar.gz static app.properties sql doc oauth
+publish:
+  docker:
+    registry: docker.qianqiusoft.com
+    email: develop@qianqiusoft.com
+    repo: docker.qianqiusoft.com/oauth
+    tag:
+      - latest