.drone.yml 438 B

123456789101112131415161718
  1. clone:
  2. depth: 50
  3. recursive: true
  4. path: oauth
  5. build:
  6. image: docker.i2edu.net/golang:1.13
  7. commands:
  8. - export GOPROXY=https://goproxy.io
  9. - export GO111MODULE=on
  10. - CGO_ENABLED=0 go build -a -ldflags '-s'
  11. - tar zcf oauth.tar.gz static app.properties sql doc oauth
  12. publish:
  13. docker:
  14. registry: docker.qianqiusoft.com
  15. email: develop@qianqiusoft.com
  16. repo: docker.qianqiusoft.com/oauth
  17. tag:
  18. - latest