.drone.yml 446 B

123456789101112131415161718
  1. clone:
  2. depth: 50
  3. recursive: true
  4. path: i2-bill-erp
  5. build:
  6. image: docker.i2edu.net/golang:1.13
  7. commands:
  8. - go env -w GOPROXY=https://goproxy.cn,direct
  9. - go mod tidy
  10. - CGO_ENABLED=0 go build -a -ldflags '-s'
  11. - tar zcf i2-bill-erp.tar.gz etc sqlconfig i2-bill-erp
  12. publish:
  13. docker:
  14. registry: docker.qianqiusoft.com
  15. email: develop@qianqiusoft.com
  16. repo: docker.qianqiusoft.com/i2-bill-erp
  17. tag:
  18. - latest