A tool to migrate GitHub Repositories to Gitea including all issues
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
gitea-github-migrator/drone.yml

127 lignes
2.6 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.11.5
pull: true
environment:
GOPATH: /go
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- go get -u github.com/gobuffalo/packr/...
- packr -z
test:
image: golang:1.11.5
pull: true
environment:
GOPATH: /go
commands:
- make test build
coverage:
image: golang:1.11.5
pull: true
environment:
GOPATH: /go
secrets: [ coveralls_token ]
commands:
- make coverage
static:
image: golang:1.11.5
pull: true
environment:
GOPATH: /go
commands:
- make generate-release-file release
when:
event: [ push ]
branch: [ master ]
static:
image: golang:1.11.5
pull: true
environment:
GOPATH: /go
commands:
- make generate-release-file release
when:
event: [ tag ]
clean:
image: golang:1.11.5
pull: true
environment:
GOPATH: /go
commands:
- packr clean
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: ggmigrator/cli
default_tags: true
when:
event: [ push, tag ]
docker-web:
image: plugins/docker:17.12
secrets: [ docker_username, docker_password ]
pull: true
dockerfile: Dockerfile.web
repo: ggmigrator/web
default_tags: true
when:
event: [ push, tag ]
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:
il y a 6 ans
event: [ tag ]
services:
gitea:
image: jonasfranz/gitea-service:latest
pull: true