.drone.yml 454 B

123456789101112131415161718
  1. clone:
  2. depth: 50
  3. recursive: true
  4. path: i2-bill-api
  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-api.tar.gz etc sqlconfig asserts i2-bill-api
  12. publish:
  13. docker:
  14. registry: docker.qianqiusoft.com
  15. email: develop@qianqiusoft.com
  16. repo: docker.qianqiusoft.com/i2-bill-api
  17. tag:
  18. - latest