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.

69 lines
1.3 KiB

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-test
  33. image: golang:1.13
  34. commands:
  35. - go test -v ./...
  36. when:
  37. event:
  38. exclude:
  39. - tag
  40. - name: docker-release-tag
  41. image: plugins/docker
  42. settings:
  43. auto_tag: true
  44. username:
  45. from_secret: docker_username
  46. password:
  47. from_secret: docker_password
  48. repo: r.vmaple.dev/rpdata/logbot3
  49. when:
  50. event:
  51. - tag
  52. - name: docker-release-latest
  53. image: plugins/docker
  54. settings:
  55. auto_tag: false
  56. username:
  57. from_secret: docker_username
  58. password:
  59. from_secret: docker_password
  60. repo: r.vmaple.dev/rpdata/logbot3
  61. when:
  62. event:
  63. - tag⏎