mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
commit
316fab5e3e
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user