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.

77 lines
1.5 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
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.14
  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. registry: r.vmaple.dev
  55. when:
  56. event:
  57. - tag
  58. - name: docker-release-latest
  59. image: plugins/docker
  60. settings:
  61. auto_tag: false
  62. username:
  63. from_secret: docker_username
  64. password:
  65. from_secret: docker_password
  66. repo: r.vmaple.dev/rpdata/logbot3
  67. registry: r.vmaple.dev
  68. when:
  69. event:
  70. - tag