mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
Create a first draft for .drone.yml
This commit is contained in:
parent
cb0b91cdc9
commit
4c03974326
2 changed files with 119 additions and 0 deletions
118
.drone.yml
Normal file
118
.drone.yml
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
workspace:
|
||||||
|
base: /srv/app
|
||||||
|
path: src/code.gitea.io/gitea
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
test:
|
||||||
|
image: webhippie/golang:edge
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
TAGS: cert sqlite pam miniwinsvc
|
||||||
|
commands:
|
||||||
|
- apk -U add linux-pam-dev openssh-client
|
||||||
|
|
||||||
|
- make clean
|
||||||
|
- make vet
|
||||||
|
# - make lint fails currently with 500 errors
|
||||||
|
- make test
|
||||||
|
- make build
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: webhippie/golang:edge
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- make test-mysql
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
|
pgsql:
|
||||||
|
image: webhippie/golang:edge
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- make test-pgsql
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
|
updater:
|
||||||
|
image: karalabe/xgo-latest:latest
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- make publish
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
branch: [ master, refs/tags/* ]
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
image: plugins/coverage
|
||||||
|
server: https://coverage.gitea.io
|
||||||
|
|
||||||
|
docker1:
|
||||||
|
image: plugins/docker
|
||||||
|
repo: gitea/gitea
|
||||||
|
tags: [ '${TAG}' ]
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: refs/tags/*
|
||||||
|
|
||||||
|
docker2:
|
||||||
|
image: plugins/docker
|
||||||
|
repo: gitea/gitea
|
||||||
|
tags: [ 'latest' ]
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
release1:
|
||||||
|
image: plugins/s3
|
||||||
|
path_style: true
|
||||||
|
source: dist/release/
|
||||||
|
target: /lgtm/master
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
release2:
|
||||||
|
image: plugins/s3
|
||||||
|
path_style: true
|
||||||
|
source: dist/release/
|
||||||
|
target: /lgtm/$$TAG
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: refs/tags/*
|
||||||
|
|
||||||
|
release3:
|
||||||
|
image: plugins/s3
|
||||||
|
path_style: true
|
||||||
|
source: dist/latest/
|
||||||
|
target: /lgtm/latest
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: refs/tags/*
|
||||||
|
|
||||||
|
github:
|
||||||
|
image: plugins/github-release
|
||||||
|
files:
|
||||||
|
- dist/release/*
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: refs/tags/*
|
||||||
|
|
||||||
|
gitter:
|
||||||
|
image: plugins/gitter
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysqlsvc:
|
||||||
|
image: mysql:5.7
|
||||||
|
environment:
|
||||||
|
- MYSQL_DATABASE=test
|
||||||
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
|
pgsqlsvc:
|
||||||
|
image: postgres:9.5
|
||||||
|
environment:
|
||||||
|
- POSTGRES_DB=test
|
||||||
|
when:
|
||||||
|
event: push
|
1
.drone.yml.sig
Normal file
1
.drone.yml.sig
Normal file
|
@ -0,0 +1 @@
|
||||||
|
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvYXBwCiAgcGF0aDogc3JjL2NvZGUuZ2l0ZWEuaW8vZ2l0ZWE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