Merge pull request #12 from tboerger/drone-fixes
Be more explicit and fixed s3 publishing
This commit is contained in:
Коммит
270ce9b64f
75
.drone.yml
75
.drone.yml
|
@ -8,28 +8,37 @@ pipeline:
|
|||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS:
|
||||
commands:
|
||||
- make clean
|
||||
- make vet
|
||||
- make lint
|
||||
- make test
|
||||
- make build
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
mysql:
|
||||
test-mysql:
|
||||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
commands:
|
||||
- make test-mysql
|
||||
when:
|
||||
event: push
|
||||
event: [ push ]
|
||||
|
||||
pgsql:
|
||||
test-pgsql:
|
||||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
commands:
|
||||
- make test-pgsql
|
||||
when:
|
||||
event: push
|
||||
event: [ push ]
|
||||
|
||||
coverage:
|
||||
image: plugins/coverage
|
||||
server: https://coverage.gitea.io
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
updater:
|
||||
image: karalabe/xgo-latest:latest
|
||||
|
@ -40,73 +49,75 @@ pipeline:
|
|||
event: [ push, tag ]
|
||||
branch: [ master, refs/tags/* ]
|
||||
|
||||
coverage:
|
||||
image: plugins/coverage
|
||||
server: https://coverage.gitea.io
|
||||
|
||||
docker1:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
repo: gitea/lgtm
|
||||
tags: [ '${TAG}' ]
|
||||
when:
|
||||
event: tag
|
||||
branch: refs/tags/*
|
||||
event: [ tag ]
|
||||
branch: [ refs/tags/* ]
|
||||
|
||||
docker2:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
repo: gitea/lgtm
|
||||
tags: [ 'latest' ]
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
event: [ push ]
|
||||
branch: [ master ]
|
||||
|
||||
release1:
|
||||
release:
|
||||
image: plugins/s3
|
||||
path_style: true
|
||||
source: dist/release/
|
||||
strip_prefix: dist/release/
|
||||
source: dist/release/*
|
||||
target: /lgtm/master
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
event: [ push ]
|
||||
branch: [ master ]
|
||||
|
||||
release2:
|
||||
release:
|
||||
image: plugins/s3
|
||||
path_style: true
|
||||
source: dist/release/
|
||||
strip_prefix: dist/release/
|
||||
source: dist/release/*
|
||||
target: /lgtm/$$TAG
|
||||
when:
|
||||
event: tag
|
||||
branch: refs/tags/*
|
||||
event: [ tag ]
|
||||
branch: [ refs/tags/* ]
|
||||
|
||||
release3:
|
||||
latest:
|
||||
image: plugins/s3
|
||||
path_style: true
|
||||
source: dist/latest/
|
||||
strip_prefix: dist/latest/
|
||||
source: dist/latest/*
|
||||
target: /lgtm/latest
|
||||
when:
|
||||
event: tag
|
||||
branch: refs/tags/*
|
||||
event: [ tag ]
|
||||
branch: [ refs/tags/* ]
|
||||
|
||||
github:
|
||||
image: plugins/github-release
|
||||
files:
|
||||
- dist/release/*
|
||||
when:
|
||||
event: tag
|
||||
branch: refs/tags/*
|
||||
event: [ tag ]
|
||||
branch: [ refs/tags/* ]
|
||||
|
||||
gitter:
|
||||
image: plugins/gitter
|
||||
|
||||
services:
|
||||
mysqlsvc:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
- MYSQL_DATABASE=test
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||
when:
|
||||
event: push
|
||||
event: [ push ]
|
||||
|
||||
pgsqlsvc:
|
||||
pgsql:
|
||||
image: postgres:9.5
|
||||
environment:
|
||||
- POSTGRES_DB=test
|
||||
when:
|
||||
event: push
|
||||
event: [ push ]
|
||||
|
|
|
@ -1 +1 @@
|
|||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvYXBwCiAgcGF0aDogc3JjL2dpdGh1Yi5jb20vZ28tZ2l0ZWEvbGd0bQoKcGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiB3ZWJoaXB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A
|
Загрузка…
Ссылка в новой задаче