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.
 
 
 
 
gitea-github-migrator/.drone.yml

100 lines
2.1 KiB

workspace:
base: /go
path: src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
deps:
image: golang:1.10
pull: true
environment:
GOPATH: /go
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
test:
image: golang:1.10
pull: true
environment:
GOPATH: /go
commands:
- make test
static:
image: golang:1.10
pull: true
environment:
GOPATH: /go
commands:
- make generate-release-file release
when:
event: [ push ]
branch: [ master ]
static:
image: golang:1.10
pull: true
environment:
GOPATH: /go
commands:
- make generate-release-file release
when:
event: [ tag ]
gitea:
image: plugins/gitea-release:latest
pull: true
base_url: "https://git.jonasfranz.software"
secrets: [ gitea_token ]
title: .version
note: .changelog.yml
files:
- releases/*
checksum:
- sha256
- md5
when:
event: [ tag ]
docker:
image: plugins/docker:17.12
secrets: [ docker_username, docker_password ]
pull: true
repo: jonasfranz/gitea-github-migrator
default_tags: true
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 ]
services:
gitea:
image: jonasfranz/gitea-service
pull: true