1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00
Files
goreleaser/www/docs/customization/env.md
Carlos Alexandro Becker e6de182f6c docs: move back to www
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-10 17:32:55 -03:00

442 B

title
title
Environment Variables

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:

# .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.