The new logbot, not committed from the wrong terminal window this time.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.4 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. name: logbot3
  2. kind: pipeline
  3. type: docker
  4. steps:
  5. - name: go-build-1.11
  6. image: golang:1.11
  7. commands:
  8. - go mod download
  9. - CGO_ENABLED=0 go build -ldflags "-w -s" .
  10. when:
  11. event:
  12. exclude:
  13. - tag
  14. - name: go-build-1.12
  15. image: golang:1.12
  16. commands:
  17. - go mod download
  18. - CGO_ENABLED=0 go build -ldflags "-w -s" .
  19. when:
  20. event:
  21. exclude:
  22. - tag
  23. - name: go-build-1.13
  24. image: golang:1.13
  25. commands:
  26. - go mod download
  27. - CGO_ENABLED=0 go build -ldflags "-w -s" .
  28. when:
  29. event:
  30. exclude:
  31. - tag
  32. - name: go-build-1.14
  33. image: golang:1.13
  34. commands:
  35. - go mod download
  36. - CGO_ENABLED=0 go build -ldflags "-w -s" .
  37. when:
  38. event:
  39. exclude:
  40. - tag
  41. - name: go-test
  42. image: golang:1.14
  43. commands:
  44. - go test -v ./...
  45. - name: docker-release-tag
  46. image: plugins/docker
  47. settings:
  48. auto_tag: true
  49. username:
  50. from_secret: docker_username
  51. password:
  52. from_secret: docker_password
  53. repo: r.vmaple.dev/rpdata/logbot3
  54. when:
  55. event:
  56. - tag
  57. - name: docker-release-latest
  58. image: plugins/docker
  59. settings:
  60. auto_tag: false
  61. username:
  62. from_secret: docker_username
  63. password:
  64. from_secret: docker_password
  65. repo: r.vmaple.dev/rpdata/logbot3
  66. when:
  67. event:
  68. - tag