Basic/Base App with Go-Macaron. With user registration/login/logout, one simple admin page and user profile edit. Taken from my git.txt to simplify laters dev app.
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.

.drone.yml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. workspace:
  2. base: /srv/app
  3. path: src/dev.sigpipe.me/dashie/myapp
  4. clone:
  5. git:
  6. image: plugins/git:1
  7. depth: 50
  8. tags: true
  9. pipeline:
  10. linters:
  11. image: webhippie/golang:edge
  12. pull: true
  13. environment:
  14. TAGS: sqlite
  15. GOPATH: /srv/app
  16. commands:
  17. - apk -U add libmagic file-dev
  18. - make clean
  19. - make vet
  20. - make lint
  21. - make misspell-check
  22. when:
  23. event: [ push, tag, pull_request ]
  24. test:
  25. image: webhippie/golang:edge
  26. pull: true
  27. environment:
  28. TAGS: sqlite
  29. GOPATH: /srv/app
  30. commands:
  31. - apk -U add libmagic file-dev
  32. - make test
  33. when:
  34. event: [ push, tag, pull_request ]
  35. integration_sqlite:
  36. image: webhippie/golang:edge
  37. pull: true
  38. environment:
  39. TAGS: sqlite
  40. GOPATH: /srv/app
  41. commands:
  42. - apk -U add libmagic file-dev
  43. - make integrations-sqlite
  44. when:
  45. event: [ push, tag, pull_request ]
  46. build:
  47. image: webhippie/golang:edge
  48. pull: true
  49. environment:
  50. TAGS: sqlite
  51. GOPATH: /srv/app
  52. commands:
  53. - apk -U add libmagic file-dev
  54. - make build
  55. when:
  56. event: [ push, tag, pull_request ]
  57. static_Linux_x86_64:
  58. image: webhippie/golang:edge
  59. pull: true
  60. environment:
  61. TAGS: sqlite
  62. GOPATH: /srv/app
  63. commands:
  64. - apk -U add libmagic file-dev
  65. - make clean
  66. - make build
  67. - make release-lx64
  68. when:
  69. event: [ push, tag ]
  70. # static:
  71. # image: karalabe/xgo-latest:latest
  72. # pull: true
  73. # environment:
  74. # TAGS: sqlite
  75. # GOPATH: /srv/app
  76. # commands:
  77. # - make clean
  78. # - make release
  79. # when:
  80. # event: [ push, tag ]
  81. # notify:
  82. # image: plugins/slack
  83. # channel: gitea
  84. # secrets:
  85. # - SLACK_WEBHOOK
  86. # when:
  87. # event: [ push, tag, pull_request ]
  88. # status: [ changed, failure, success ]