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.
|
|
|
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
|
|
|
|
static:
|
|
|
|
image: karalabe/xgo-latest:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
GOPATH: /go
|
|
|
|
commands:
|
|
|
|
- mkdir releases
|
|
|
|
- go get -u github.com/karalabe/xgo
|
|
|
|
- xgo -dest releases -out gitea-github-migrator -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" --targets=windows/*,darwin/*,linux/* .
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
gitea:
|
|
|
|
image: plugins/gitea-release:1
|
|
|
|
pull: true
|
|
|
|
base_url: "https://git.jonasfranz.software"
|
|
|
|
secrets: [ gitea_token ]
|
|
|
|
files:
|
|
|
|
- releases/*
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- md5
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|