GraphQL API and utilities for the rpdata project
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.

53 lines
1.1 KiB

  1. name: rpdata-api
  2. kind: pipeline
  3. type: docker
  4. steps:
  5. - name: go-test
  6. image: golang:1.14
  7. commands:
  8. - go generate ./...
  9. - go test -v ./...
  10. # - name: postgres-migrate
  11. # image: golang:1.15
  12. # depends_on: []
  13. # environment:
  14. # DB_CONNECT:
  15. # from_secret: db_connect
  16. # commands:
  17. # - go get -u github.com/pressly/goose/...
  18. # - cd migrations/postgres
  19. # - goose postgres "$DB_CONNECT" up
  20. # when:
  21. # event:
  22. # - tag
  23. - name: docker-release-tag
  24. image: plugins/docker
  25. settings:
  26. auto_tag: true
  27. username:
  28. from_secret: docker_username
  29. password:
  30. from_secret: docker_password
  31. repo: r.vmaple.dev/rpdata/rpdata-api
  32. registry: r.vmaple.dev
  33. when:
  34. event:
  35. - tag
  36. - name: docker-release-latest
  37. image: plugins/docker
  38. settings:
  39. auto_tag: false
  40. username:
  41. from_secret: docker_username
  42. password:
  43. from_secret: docker_password
  44. repo: r.vmaple.dev/rpdata/rpdata-api
  45. registry: r.vmaple.dev
  46. when:
  47. event:
  48. - tag