2021-05-26 19:08:46 -03:00
|
|
|
# Includes
|
|
|
|
|
2021-09-22 23:30:16 -03:00
|
|
|
!!! success "GoReleaser Pro"
|
|
|
|
Includes is a [GoReleaser Pro feature](/pro/).
|
|
|
|
|
2021-05-26 19:08:46 -03:00
|
|
|
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
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-05-26 19:08:46 -03:00
|
|
|
includes:
|
|
|
|
- from_file:
|
2021-12-23 01:52:01 +01:00
|
|
|
path: ./config/goreleaser.yaml
|
2021-05-26 19:08:46 -03:00
|
|
|
- from_url:
|
2021-12-23 01:52:01 +01:00
|
|
|
url: https://raw.githubusercontent.com/goreleaser/goreleaser/main/.goreleaser.yaml
|
2021-08-01 21:07:00 -03:00
|
|
|
- from_url:
|
|
|
|
url: caarlos0/goreleaserfiles/main/packages.yml # the https://raw.githubusercontent.com/ prefix may be ommited
|
2021-05-26 19:08:46 -03:00
|
|
|
- from_url:
|
2021-12-23 01:52:01 +01:00
|
|
|
url: https://api.mycompany.com/configs/goreleaser.yaml
|
2021-05-26 19:08:46 -03:00
|
|
|
headers:
|
|
|
|
# header values are expanded in case they are environment variables
|
|
|
|
x-api-token: "${MYCOMPANY_TOKEN}"
|
|
|
|
```
|