A tool to migrate GitHub Repositories to Gitea including all issues
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

drone.yml 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.11.5
  12. pull: true
  13. environment:
  14. GOPATH: /go
  15. commands:
  16. - go get -u github.com/golang/dep/cmd/dep
  17. - dep ensure
  18. - go get -u github.com/gobuffalo/packr/...
  19. - packr -z
  20. test:
  21. image: golang:1.11.5
  22. pull: true
  23. environment:
  24. GOPATH: /go
  25. commands:
  26. - make test build
  27. coverage:
  28. image: golang:1.11.5
  29. pull: true
  30. environment:
  31. GOPATH: /go
  32. secrets: [ coveralls_token ]
  33. commands:
  34. - make coverage
  35. static:
  36. image: golang:1.11.5
  37. pull: true
  38. environment:
  39. GOPATH: /go
  40. commands:
  41. - make generate-release-file release
  42. when:
  43. event: [ push ]
  44. branch: [ master ]
  45. static:
  46. image: golang:1.11.5
  47. pull: true
  48. environment:
  49. GOPATH: /go
  50. commands:
  51. - make generate-release-file release
  52. when:
  53. event: [ tag ]
  54. clean:
  55. image: golang:1.11.5
  56. pull: true
  57. environment:
  58. GOPATH: /go
  59. commands:
  60. - packr clean
  61. gitea:
  62. image: plugins/gitea-release:latest
  63. pull: true
  64. base_url: "https://git.jonasfranz.software"
  65. secrets: [ gitea_token ]
  66. title: .version
  67. note: .changelog.yml
  68. files:
  69. - releases/*
  70. checksum:
  71. - sha256
  72. - md5
  73. when:
  74. event: [ tag ]
  75. docker:
  76. image: plugins/docker:17.12
  77. secrets: [ docker_username, docker_password ]
  78. pull: true
  79. repo: ggmigrator/cli
  80. default_tags: true
  81. when:
  82. event: [ push, tag ]
  83. docker-web:
  84. image: plugins/docker:17.12
  85. secrets: [ docker_username, docker_password ]
  86. pull: true
  87. dockerfile: Dockerfile.web
  88. repo: ggmigrator/web
  89. default_tags: true
  90. when:
  91. event: [ push, tag ]
  92. s3:
  93. image: plugins/s3:1
  94. pull: true
  95. secrets: [ aws_access_key_id, aws_secret_access_key ]
  96. bucket: gitea-github-migrator
  97. path_style: true
  98. acl: public-read
  99. source: releases/*
  100. target: dist/master
  101. strip_prefix: releases/
  102. endpoint: https://storage.h.jonasfranz.software
  103. when:
  104. event: [ push ]
  105. branch: [ master ]
  106. s3:
  107. image: plugins/s3:1
  108. pull: true
  109. secrets: [ aws_access_key_id, aws_secret_access_key ]
  110. bucket: gitea-github-migrator
  111. path_style: true
  112. acl: public-read
  113. source: releases/*
  114. target: dist/${DRONE_TAG##v}
  115. strip_prefix: releases/
  116. endpoint: https://storage.h.jonasfranz.software
  117. when:
  118. event: [ tag ]
  119. services:
  120. gitea:
  121. image: jonasfranz/gitea-service:latest
  122. pull: true