A tool to migrate GitHub Repositories to Gitea including all issues
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

100 lines
2.1 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. environment:
  22. GOPATH: /go
  23. commands:
  24. - make test
  25. static:
  26. image: golang:1.10
  27. pull: true
  28. environment:
  29. GOPATH: /go
  30. commands:
  31. - make generate-release-file release
  32. when:
  33. event: [ push ]
  34. branch: [ master ]
  35. static:
  36. image: golang:1.10
  37. pull: true
  38. environment:
  39. GOPATH: /go
  40. commands:
  41. - make generate-release-file release
  42. when:
  43. event: [ tag ]
  44. gitea:
  45. image: plugins/gitea-release:latest
  46. pull: true
  47. base_url: "https://git.jonasfranz.software"
  48. secrets: [ gitea_token ]
  49. title: .version
  50. note: .changelog.yml
  51. files:
  52. - releases/*
  53. checksum:
  54. - sha256
  55. - md5
  56. when:
  57. event: [ tag ]
  58. docker:
  59. image: plugins/docker:17.12
  60. secrets: [ docker_username, docker_password ]
  61. pull: true
  62. repo: jonasfranz/gitea-github-migrator
  63. default_tags: true
  64. when:
  65. event: [ push, tag ]
  66. branch: [ master ]
  67. s3:
  68. image: plugins/s3:1
  69. pull: true
  70. secrets: [ aws_access_key_id, aws_secret_access_key ]
  71. bucket: gitea-github-migrator
  72. path_style: true
  73. acl: public-read
  74. source: releases/*
  75. target: dist/master
  76. strip_prefix: releases/
  77. endpoint: https://storage.h.jonasfranz.software
  78. when:
  79. event: [ push ]
  80. branch: [ master ]
  81. s3:
  82. image: plugins/s3:1
  83. pull: true
  84. secrets: [ aws_access_key_id, aws_secret_access_key ]
  85. bucket: gitea-github-migrator
  86. path_style: true
  87. acl: public-read
  88. source: releases/*
  89. target: dist/${DRONE_TAG##v}
  90. strip_prefix: releases/
  91. endpoint: https://storage.h.jonasfranz.software
  92. when:
  93. event: [ tag ]
  94. services:
  95. gitea:
  96. image: jonasfranz/gitea-service
  97. pull: true