github.com/devster/tarreleaser@v0.0.0-20221207180803-c608f4eb8918/pkg/static/config.go (about)

     1  package static
     2  
     3  const ExampleConfig = `# This is an example .tarreleaser.yml file; please edit accordingly to your needs.
     4  #dist: "dist/"
     5  
     6  archive:
     7    name: "latest-{{ .Branch }}.tar.gz"
     8  
     9  #  compression_level: 6 # Default to -1 (golang default compression) [1-9]
    10  
    11  #  wrap_in_directory: "{{.Timestamp}}"
    12  
    13    includes:
    14      - "./**/*"
    15  
    16    excludes:
    17      - ".git"
    18  
    19  #  empty_dirs: # add empty dirs with specified mode
    20  #    "var/cache": 0777
    21  
    22    info_file: # Insert a release info file into the archive
    23      name: "release.txt"
    24  #    content: |
    25  #      Date: {{ .Date }}
    26  #      Tag: {{ .Tag }}
    27  #      Commit: {{ .FullCommit }}
    28  
    29  #publish:
    30  #  s3:
    31  #    folder: "my-app/{{.Branch}}"
    32  #    bucket: "my-bucket"
    33  #    region: "eu-west-1"
    34  `
    35  
    36  const DefaultReleaseFileContent = `Date: {{ .Date }}
    37  Tag: {{ .Tag }}
    38  Commit: {{ .FullCommit }}
    39  Commit info: {{ .Commit.Message }} - {{ .Commit.Author }}
    40  `