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.
 
 
 
 
 

42 lines
821 B

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: server
  5. image: vardrop/golang-git
  6. volumes:
  7. - name: dist
  8. path: /tmp/dist
  9. commands:
  10. - go get github.com/gorilla/mux
  11. - chmod +x api/build.sh
  12. - api/build.sh
  13. - name: plugin
  14. image: maven:latest
  15. volumes:
  16. - name: dist
  17. path: /tmp/dist
  18. commands:
  19. - mvn clean install -f OauthPlugin/pom.xml
  20. - mvn package -f OauthPlugin/pom.xml
  21. - cp OauthPlugin/target/OauthPlugin* /tmp/dist/OauthPlugin.jar
  22. - name: gitea_release
  23. image: plugins/gitea-release
  24. volumes:
  25. - name: dist
  26. path: /tmp/dist
  27. settings:
  28. api_key:
  29. from_secret: gitea_token
  30. base_url: https://git.varelus.com
  31. files:
  32. - /tmp/dist/*
  33. checksum:
  34. - md5
  35. - sha1
  36. title: RELEASE.md
  37. note: CHANGELOG.md
  38. when:
  39. event: tag
  40. volumes:
  41. - name: dist
  42. temp: {}