github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/includes.md (about) 1 # Includes 2 3 !!! success "GoReleaser Pro" 4 5 Includes is a [GoReleaser Pro feature](../pro.md). 6 7 GoReleaser allows you to reuse configuration files by including them from either 8 a URL or a file path. 9 10 Files are included recursively in the order they are declared. 11 12 ```yaml 13 # .goreleaser.yaml 14 includes: 15 - from_file: 16 path: ./config/goreleaser.yaml 17 - from_url: 18 url: https://raw.githubusercontent.com/goreleaser/goreleaser/main/.goreleaser.yaml 19 - from_url: 20 url: caarlos0/goreleaserfiles/main/packages.yml # the https://raw.githubusercontent.com/ prefix may be omitted 21 - from_url: 22 url: https://api.mycompany.com/configs/goreleaser.yaml 23 headers: 24 # header values are expanded in case they are environment variables 25 x-api-token: "${MYCOMPANY_TOKEN}" 26 ``` 27 28 With this and the power of templates, you might be able to reuse the same 29 `.goreleaser.yaml` configuration file in many projects, or create one file for 30 each "purpose" and compose them in the final project's `.goreleaser.yaml`.