A tool to migrate GitHub Repositories to Gitea including all issues
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.
 
 
 

64 lines
1.7 KiB

  1. workspace:
  2. base: /go
  3. path: src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
  4. clone:
  5. git:
  6. image: plugins/git:1
  7. depth: 50
  8. tags: true
  9. pipeline:
  10. deps:
  11. image: golang:1.10
  12. pull: true
  13. environment:
  14. GOPATH: /go
  15. commands:
  16. - go get -u github.com/golang/dep/cmd/dep
  17. - dep ensure
  18. test:
  19. image: golang:1.10
  20. pull: true
  21. enviroment:
  22. GOPATH: /go
  23. commands:
  24. - go get -u golang.org/x/lint/golint
  25. - golint -set_exit_status $(go list ./...)
  26. - go vet ./...
  27. - go test -cover ./...
  28. static:
  29. image: karalabe/xgo-latest:latest
  30. pull: true
  31. environment:
  32. GOPATH: /go
  33. commands:
  34. - go get -u github.com/karalabe/xgo
  35. - xgo -out gitea-github-migrator -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" --targets=windows/*,darwin/*,linux/* .
  36. when:
  37. event: [ tag ]
  38. gitea:
  39. image: plugins/gitea-release:latest
  40. pull: true
  41. base_url: "https://git.jonasfranz.software"
  42. secrets: [ gitea_token ]
  43. files:
  44. - gitea-github-migrator-darwin-10.6-386
  45. - gitea-github-migrator-linux-amd64
  46. - gitea-github-migrator-linux-arm64
  47. - gitea-github-migrator-linux-mips64
  48. - gitea-github-migrator-windows-4.0-386.exe
  49. - gitea-github-migrator-darwin-10.6-amd64
  50. - gitea-github-migrator-linux-arm-5
  51. - gitea-github-migrator-linux-arm-7
  52. - gitea-github-migrator-linux-mips64le
  53. - gitea-github-migrator-windows-4.0-amd64.exe
  54. - gitea-github-migrator-linux-386
  55. - gitea-github-migrator-linux-arm-6
  56. - gitea-github-migrator-linux-mips
  57. - gitea-github-migrator-linux-mipsle
  58. checksum:
  59. - sha256
  60. - md5
  61. when:
  62. event: [ tag ]