Browse Source

Add support for S3 distribution (#15)

tags/v0.0.10
Jonas Franz Gitea 1 year ago
parent
commit
509abf5a7f
2 changed files with 38 additions and 2 deletions
  1. +29
    -1
      .drone.yml
  2. +9
    -1
      README.md

+ 29
- 1
.drone.yml View File

@@ -32,7 +32,8 @@ pipeline:
commands:
- make release
when:
event: [ tag ]
event: [ push, tag ]
branch: [ master ]
gitea:
image: plugins/gitea-release:latest
pull: true
@@ -54,3 +55,30 @@ pipeline:
when:
event: [ push, tag ]
branch: [ master ]
s3:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: gitea-github-migrator
path_style: true
acl: public-read
source: releases/*
target: dist/master
strip_prefix: releases/
endpoint: https://storage.h.jonasfranz.software
when:
event: [ push ]
branch: [ master ]
s3:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: gitea-github-migrator
path_style: true
acl: public-read
source: releases/*
target: dist/${DRONE_TAG##v}
strip_prefix: releases/
endpoint: https://storage.h.jonasfranz.software
when:
event: [ tag ]

+ 9
- 1
README.md View File

@@ -15,11 +15,13 @@ Migrates:
- [x] Milestones
- [x] Comments
- [ ] Users
- [ ] Pull Requests
- [x] Pull Requests (as issue)
- [ ] Statuses

## Installation

### From source

```bash
go get git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
cd $GOPATH/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
@@ -27,6 +29,12 @@ dep ensure
go install
```

### From Binary
We provide binaries of master builds and all releases at our [minio storage server](https://storage.h.jonasfranz.software/minio/gitea-github-migrator/dist/).

Additionally we provide them for every release as release attachment under [releases](https://git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/releases).

You don't need any dependencies except the binary to run the migrator.
## Usage

Migrate one repository:


Loading…
Cancel
Save