1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

docs: Update ci.md

Add drone instructions.
This commit is contained in:
Gustavo Chaín 2018-07-11 11:43:09 +02:00 committed by Gustvo Chain
parent 0e078fdc19
commit dc74293ed4

View File

@ -70,3 +70,29 @@ deployment:
commands:
- curl -sL https://git.io/goreleaser | bash
```
# Drone
By default, drone does not fetch tags. `plugins/git` is used with default values, in most of the case we'll need overwrite the `clone` step with tags enabled in order to make `goreleaser` work correctly.
In this example we're creating a new release every time a new tag is pushed.
Note that you'll need to enable `tags` in repo settings and add `github_token` secret.
```yml
pipeline:
clone:
image: plugins/git
tags: true
test:
image: golang:1.10
commands:
- go test ./... -race
release:
image: golang:1.10
secrets: [github_token]
commands:
curl -sL https://git.io/goreleaser | bash
when:
event: tag
```