mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
docs: ref fixes
refs #3152 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
176336f264
commit
1a8e075e4f
@ -100,7 +100,7 @@ Make sure to also read the [relevant documentation][docs] for more options.
|
||||
|
||||
[issue]: https://github.com/goreleaser/goreleaser/issues/1354
|
||||
[pr]: https://github.com/goreleaser/goreleaser/pull/2129
|
||||
[docs]: /customization/gomod/
|
||||
[docs]: /customization/verifiable_builds/
|
||||
|
||||
## Real example
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
Global environment variables to be passed down to all hooks and builds.
|
||||
|
||||
If you have an environment variable named FOOBAR set to "on", your `.goreleaser.yaml` file could use it like this:
|
||||
If you have an environment variable named `FOOBAR` set to `on`, your `.goreleaser.yaml` file could use it like this:
|
||||
|
||||
```yaml
|
||||
# .goreleaser.yaml
|
||||
@ -16,7 +16,7 @@ builds:
|
||||
- binary: program
|
||||
```
|
||||
|
||||
This way, both `go mod tidy` and the underlying `go build` will have `FOO` set to `on`.
|
||||
This way, both your before hooks (in this example, `go mod tidy`) and the underlying builds (using `go build`) will have `FOO` set to `on`.
|
||||
|
||||
The root `env` section also accepts templates.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user