mirror of https://github.com/gogits/gogs.git
Thomas Boerger
9 years ago
3 changed files with 145 additions and 23 deletions
@ -0,0 +1,86 @@
|
||||
clone: |
||||
path: github.com/gogits/gogs |
||||
|
||||
build: |
||||
general: |
||||
image: golang:$$GO_VERSION |
||||
environment: |
||||
- TAGS=pam sqlite cert |
||||
commands: |
||||
- apt-get update -qq && apt-get install -y libpam-dev zip |
||||
- make deps |
||||
- make test |
||||
- make build |
||||
|
||||
release: |
||||
image: golang:1.5 |
||||
environment: |
||||
- TAGS=pam sqlite cert |
||||
commands: |
||||
- apt-get update -qq && apt-get install -y libpam-dev zip |
||||
- make deps |
||||
- make release |
||||
when: |
||||
repo: gogits/gogs |
||||
branch: master |
||||
matrix: |
||||
GO_VERSION: 1.5 |
||||
|
||||
publish: |
||||
github_release: |
||||
api_key: $$GITHUB_TOKEN |
||||
files: |
||||
- dist/*.tgz |
||||
- dist/*.zip |
||||
when: |
||||
repo: gogits/gogs |
||||
event: tag |
||||
matrix: |
||||
GO_VERSION: 1.5 |
||||
|
||||
docker: |
||||
username: $$DOCKER_USERNAME |
||||
password: $$DOCKER_PASSWORD |
||||
email: $$DOCKER_EMAIL |
||||
repo: gogs/gogs |
||||
tag: $${TAG##v} |
||||
when: |
||||
repo: gogits/gogs |
||||
event: tag |
||||
matrix: |
||||
GO_VERSION: 1.5 |
||||
|
||||
docker: |
||||
username: $$DOCKER_USERNAME |
||||
password: $$DOCKER_PASSWORD |
||||
email: $$DOCKER_EMAIL |
||||
repo: gogs/gogs |
||||
tag: $${BRANCH/master/latest} |
||||
when: |
||||
repo: gogits/gogs |
||||
branch: [develop, master] |
||||
matrix: |
||||
GO_VERSION: 1.5 |
||||
|
||||
notify: |
||||
gitter: |
||||
webhook: https://webhooks.gitter.im/e/c52d2013f36e28b35f71 |
||||
when: |
||||
repo: gogits/gogs |
||||
|
||||
email: |
||||
host: $$EMAIL_HOST |
||||
port: $$EMAIL_PORT |
||||
username: $$EMAIL_USERNAME |
||||
password: $$EMAIL_PASSWORD |
||||
from: drone@gogs.io |
||||
recipients: |
||||
- u@gogs.io |
||||
when: |
||||
repo: gogits/gogs |
||||
|
||||
matrix: |
||||
GO_VERSION: |
||||
- 1.3 |
||||
- 1.4 |
||||
- 1.5 |
Loading…
Reference in new issue