mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
commit
316fab5e3e
@ -70,3 +70,33 @@ deployment:
|
|||||||
commands:
|
commands:
|
||||||
- curl -sL https://git.io/goreleaser | bash
|
- 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…
x
Reference in New Issue
Block a user