1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/www/docs/customization/includes.md
Carlos Alexandro Becker 55dd91e404
docs: improve several documentation pages
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 23:30:16 -03:00

778 B

Includes

!!! success "GoReleaser Pro" Includes is a GoReleaser Pro feature.

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.

# .goreleaser.yml
includes:
  - from_file:
      path: ./config/goreleaser.yml
  - from_url:
      url: https://raw.githubusercontent.com/goreleaser/goreleaser/master/.goreleaser.yml
  - from_url:
      url: caarlos0/goreleaserfiles/main/packages.yml # the https://raw.githubusercontent.com/ prefix may be ommited
  - 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}"