1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

Merge pull request #722 from gchaincl/patch-1

Update ci.md
This commit is contained in:
Carlos Alexandro Becker 2018-07-11 10:12:10 -07:00 committed by GitHub
commit 316fab5e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,3 +70,33 @@ 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 cases we'll need overwrite the `clone` step enabling tags 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
```