1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/www/content/env.md
Carlos Alexandro Becker 367c6c0d1d
docs: improve docs
2019-03-24 20:10:30 -03:00

27 lines
495 B
Markdown

---
title: Environment Variables
series: customization
hideFromIndex: true
weight: 19
---
Global environment variables to be passed down to all hooks and builds.
This is useful for `GO111MODULE`, for example. You can have your
`.goreleaser.yaml` file like the following:
```yaml
# .goreleaser.yml
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- binary: program
```
This way, both `go mod download` and the underlying `go build` will have
`GO111MODULE` set to `on`.