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.

65 lines
1.2 KiB

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