.goreleaser.yml

  1project_name: freeport
  2
  3release:
  4  github:
  5    owner: phayes
  6    name: freeport
  7
  8builds:
  9  - binary: freeport
 10    goos:
 11      - linux
 12      - darwin
 13    goarch:
 14      - amd64
 15      - "386"
 16    goarm:
 17      - "6"
 18    main: ./cmd/freeport
 19    ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
 20
 21archive:
 22  format: tar.gz
 23  name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
 24    .Arm }}{{ end }}'
 25  files:
 26  - licence*
 27  - LICENCE*
 28  - license*
 29  - LICENSE*
 30  - readme*
 31  - README*
 32  - changelog*
 33  - CHANGELOG*
 34
 35snapshot:
 36  name_template: SNAPSHOT-{{ .Commit }}
 37
 38checksum:
 39  name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
 40
 41# Create RPM and .DEB files
 42fpm:
 43  vendor: Patrick Hayes
 44
 45  # Your app's homepage.
 46  #homepage: https://example.com/
 47
 48  # Your app's maintainer
 49  maintainer: Patrick Hayes <patrick.d.hayes@gmail.com>
 50
 51  # Your app's description.
 52  description: Get a free open TCP port that is ready to use.
 53
 54  # Your app's license.
 55  # Default is empty.
 56  license: BSD
 57
 58  # Formats to be generated.
 59  formats:
 60    - deb
 61    - rpm
 62
 63  # Packages your package depends on.
 64  #dependencies:
 65  #  - git
 66  #  - zsh
 67
 68  # Packages that conflict with your package.
 69  #conflicts:
 70  #  - svn
 71  #  - bash
 72
 73  # Files or directories to add to your package (beyond the binary).
 74  # Keys are source paths to get the files from.
 75  # Values are the destination locations of the files in the package.
 76  #files:
 77  #  "scripts/etc/init.d/": "/etc/init.d"
 78
 79# Homebrew repos
 80brew:
 81  # Reporitory to push the tap to.
 82  github:
 83    owner: phayes
 84    name: homebrew-repo
 85
 86  # Git author used to commit to the repository.
 87  # Defaults are shown.
 88  commit_author:
 89    name: goreleaserbot
 90    email: goreleaser@carlosbecker.com
 91
 92  # Folder inside the repository to put the formula.
 93  # Default is the root folder.
 94  folder: freeport
 95
 96  # Caveats for the user of your binary.
 97  # Default is empty.
 98  # caveats: "How to use this binary"
 99
100  # Your app's homepage.
101  # Default is empty.
102  # homepage: "https://example.com/"
103
104  # Your app's description.
105  # Default is empty.
106  description: "Get a free open TCP port that is ready to use."
107
108  # Packages your package depends on.
109  #dependencies:
110  #  - git
111  #  - zsh
112
113  # Packages that conflict with your package.
114  #conflicts:
115  #  - svn
116  #  - bash
117
118  # Specify for packages that run as a service.
119  # Default is empty.
120  #plist: |
121  #  <?xml version="1.0" encoding="UTF-8"?>
122  #  ...
123
124  # So you can `brew test` your formula.
125  # Default is empty.
126  #test: |
127  #  system "#{bin}/program --version"
128  #  ...
129
130  # Custom install script for brew.
131  # Default is 'bin.install "program"'.
132  #install: |
133  #  bin.install "program"
134  #  ...