Hugo-to-Gemini Markdown converter
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.
 
 

45 lines
785 B

  1. kind: pipeline
  2. name: build & release
  3. steps:
  4. - name: fetch tags
  5. image: docker:git
  6. commands:
  7. - git fetch --tags
  8. when:
  9. event: tag
  10. - name: test
  11. image: golang:1.14
  12. commands:
  13. - go test -v ./internal/gemini
  14. when:
  15. event:
  16. exclude:
  17. - tag
  18. - name: release
  19. image: golang:1.15
  20. environment:
  21. GITEA_TOKEN:
  22. from_secret: goreleaser_gitea_token
  23. commands:
  24. - curl -sL https://git.io/goreleaser | bash
  25. when:
  26. event: tag
  27. - name: build docker image
  28. image: plugins/docker
  29. settings:
  30. username:
  31. from_secret: username
  32. password:
  33. from_secret: password
  34. repo: registry.git.tdem.in/gmnhg
  35. registry: registry.git.tdem.in
  36. dockerfile: Dockerfile
  37. tags:
  38. - ${DRONE_TAG}
  39. - latest
  40. when:
  41. event:
  42. - tag