1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-11 14:39:28 +02:00

docs: clarify includes

This commit is contained in:
Carlos Alexandro Becker 2023-09-19 00:31:05 +00:00
parent 695a56feaa
commit eab8a0d07b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -1,10 +1,11 @@
# Includes
!!! success "GoReleaser Pro"
Includes is a [GoReleaser Pro feature](/pro/).
GoReleaser allows you to include other files from a URL or in the current
file system.
Includes is a [GoReleaser Pro feature](../pro.md).
GoReleaser allows you to reuse configuration files by including them from either
a URL or a file path.
Files are included recursively in the order they are declared.
@ -23,3 +24,7 @@ includes:
# header values are expanded in case they are environment variables
x-api-token: "${MYCOMPANY_TOKEN}"
```
With this and the power of templates, you might be able to reuse the same
`.goreleaser.yaml` configuration file in many projects, or create one file for
each "purpose" and compose them in the final project's `.goreleaser.yaml`.