2021-05-26 19:08:46 -03:00
|
|
|
# Includes
|
|
|
|
|
|
|
|
GoReleaser allows you to include other files from an URL or in the current filesystem.
|
|
|
|
|
|
|
|
Files are included recursively in the order they are declared.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# .goreleaser.yml
|
|
|
|
includes:
|
|
|
|
- from_file:
|
|
|
|
path: ./config/goreleaser.yml
|
|
|
|
- from_url:
|
|
|
|
url: https://raw.githubusercontent.com/goreleaser/goreleaser/master/.goreleaser.yml
|
|
|
|
- from_url:
|
|
|
|
url: https://api.mycompany.com/configs/goreleaser.yml
|
|
|
|
headers:
|
|
|
|
# header values are expanded in case they are environment variables
|
|
|
|
x-api-token: "${MYCOMPANY_TOKEN}"
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! info
|
2021-06-21 02:13:49 +00:00
|
|
|
Includes is a [GoReleaser Pro feature](/pro/).
|