github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/tools/release/.goreleaser.yml (about)

     1  # Content managed by Project Forge, see [projectforge.md] for details.
     2  # http://goreleaser.com
     3  project_name: dbaudit
     4  
     5  archives:
     6    - format: zip
     7      wrap_in_directory: "false"
     8      files:
     9        - none*
    10  
    11  brews:
    12    -
    13      repository:
    14        owner: "kyleu"
    15        name: "homebrew-kyleu"
    16      commit_author:
    17        name: "Kyle U"
    18        email: "kyle@kyleu.com"
    19      folder: Formula
    20      homepage: "https://github.com/kyleu/dbaudit"
    21      description: "Allows you to visualize the activity on your SQL Server installation"
    22      license: "MIT"
    23      skip_upload: "false"
    24      install: "bin.install \"dbaudit\""
    25  
    26  changelog:
    27    use: "github"
    28  
    29  checksum:
    30    name_template: "checksums.txt"
    31    extra_files:
    32      # $PF_SECTION_START(checksums)$
    33      # $PF_SECTION_END(checksums)$
    34  
    35  dockers:
    36    -
    37      image_templates:
    38        - "ghcr.io/kyleu/dbaudit:{{ trimprefix .Tag \"v\" }}"
    39        - "ghcr.io/kyleu/dbaudit:latest"
    40      dockerfile: ./tools/release/Dockerfile.release
    41    -
    42      image_templates:
    43        - "ghcr.io/kyleu/dbaudit:{{ trimprefix .Tag \"v\" }}-debug"
    44        - "ghcr.io/kyleu/dbaudit:latest-debug"
    45      dockerfile: ./tools/release/Dockerfile.debug
    46  
    47  dist: "build/dist"
    48  
    49  release:
    50    draft: false
    51    header: |
    52      ## {{ .Version }} ({{ .Date }})
    53      See https://github.com/kyleu/dbaudit for download links and documentation
    54      ## Main downloads
    55      - [Linux Intel 64 bit](https://github.com/kyleu/dbaudit/releases/download/{{ .Tag }}/dbaudit_{{ .Version }}_linux_amd64.zip)
    56      - [MacOS Universal](https://github.com/kyleu/dbaudit/releases/download/{{ .Tag }}/dbaudit_{{ .Version }}_darwin_all.zip)
    57      - [Windows Intel 64 bit](https://github.com/kyleu/dbaudit/releases/download/{{ .Tag }}/dbaudit_{{ .Version }}_windows_amd64.zip)
    58  
    59    extra_files:
    60      # $PF_SECTION_START(releasefiles)$
    61      # $PF_SECTION_END(releasefiles)$
    62  
    63  signs:
    64    - artifacts: checksum
    65  
    66  snapshot:
    67    name_template: "{{ .Tag }}"
    68  
    69  source:
    70    enabled: true
    71    name_template: "{{ .ProjectName }}_{{ .Version }}_source"
    72    format: "zip"
    73  
    74  universal_binaries:
    75  - id: "darwin"
    76    replace: false
    77    name_template: '{{ .ProjectName }}'
    78    hooks:
    79      # This is a good place to put one-time use scripts
    80      post:
    81        # $PF_SECTION_START(extrascripts)$
    82        # $PF_SECTION_END(extrascripts)$
    83  
    84  builds:
    85    - id: "darwin"
    86      goos:
    87        - darwin
    88      goarch:
    89        - "amd64"
    90        - "arm64"
    91      mod_timestamp: "{{ .CommitTimestamp }}"
    92  
    93    - id: "linux"
    94      goos:
    95        - "linux"
    96      goarch:
    97        - "386"
    98        - "amd64"
    99        - "arm64"
   100      mod_timestamp: "{{ .CommitTimestamp }}"
   101  
   102    - id: "windows"
   103      goos:
   104        - "windows"
   105      goarch:
   106        - "amd64"
   107      mod_timestamp: "{{ .CommitTimestamp }}"
   108  
   109    - id: "windows_386"
   110      goos:
   111        - "windows"
   112      goarch:
   113        - "386"
   114      mod_timestamp: "{{ .CommitTimestamp }}"