github.com/hazelops/ize@v1.1.12-0.20230915191306-97d7c0e48f11/.goreleaser_push.yml (about)

     1  project_name: ize
     2  builds:
     3    - env: [CGO_ENABLED=0]
     4      goos:
     5        - darwin
     6        - linux
     7        - windows
     8      goarch:
     9        - amd64
    10        - arm64
    11      ignore:
    12        - goos: windows
    13          goarch: arm64
    14      id: "ize"
    15      dir: .
    16      main: ./cmd
    17      ldflags:
    18        - -s -w -X 'github.com/hazelops/ize/internal/version.Version={{.Env.RELEASE_VERSION}} {{.Date}} by {{.Env.GITHUB_ACTOR}}' -X 'github.com/hazelops/ize/internal/version.GitCommit={{.Env.SHORT_SHA}}'
    19      tags:
    20        - viper_toml1
    21  
    22  release:
    23    prerelease: true
    24  
    25  brews:
    26    - name: ize-dev
    27      tap:
    28        owner: hazelops
    29        name: homebrew-ize
    30        branch: main
    31        # Optionally a token can be provided, if it differs from the token provided to GoReleaser
    32        token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
    33      download_strategy: CurlDownloadStrategy
    34      commit_author:
    35        name: ize
    36        email: ize@hazelops.com
    37      # The project name and current git tag are used in the format string.
    38      commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
    39      homepage: "https://ize.sh/"
    40      description: "IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra"
    41      license: "Apache 2.0"
    42      skip_upload: false
    43      conflicts:
    44        - ize
    45      test: |
    46        system "#{bin}/ize"
    47      # Custom install script for brew.
    48      install: |
    49        bin.install "ize"
    50  
    51  nfpms:
    52    # note that this is an array of nfpm configs
    53    -
    54      # ID of the nfpm config, must be unique.
    55      # Defaults to "default".
    56      id: ize-dev
    57  
    58      # Name of the package.
    59      # Defaults to `ProjectName`.
    60  #    package_name: foo
    61  
    62      # You can change the file name of the package.
    63      # Default: `{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
    64      file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
    65      formats:
    66        - deb
    67        - rpm
    68      vendor: HazelOps
    69      homepage: https://ize.sh
    70      maintainer: Ize development team <ize@hazelops.com>
    71      description: IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra
    72      license: Apache 2.0
    73  
    74  publishers:
    75    - name: fury.io
    76      # by specifying `packages` id here goreleaser will only use this publisher
    77      # with artifacts identified by this id
    78      ids:
    79        - ize-dev
    80      dir: "{{ dir .ArtifactPath }}"
    81      cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/hazelops/
    82  
    83  archives:
    84    -
    85      format_overrides:
    86        - goos: windows
    87          format: zip
    88  
    89  scoop:
    90    # Template for the url which is determined by the given Token (github or gitlab)
    91    # Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
    92    # Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
    93    # Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
    94  #  url_template: "https://github.com/hazelops/ize/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
    95  
    96    # Repository to push the app manifest to.
    97    bucket:
    98      owner: hazelops
    99      name: scoop-ize
   100  
   101      # Optionally a branch can be provided.
   102      # Defaults to the default repository branch.
   103      branch: main
   104  
   105      # Optionally a token can be provided, if it differs from the token provided to GoReleaser
   106      token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
   107  
   108    # Folder inside the repository to put the scoop.
   109    # Default is the root folder.
   110    folder: dev
   111  
   112    # Git author used to commit to the repository.
   113    # Defaults are shown.
   114    commit_author:
   115      name: hazelops
   116      email: ize@hazelops.com
   117  
   118    # The project name and current git tag are used in the format string.
   119    commit_msg_template: "Ize update for {{ .ProjectName }} version {{ .Tag }}"
   120  
   121    # Your app's homepage.
   122    # Default is empty.
   123    homepage: "https://ize.sh/"
   124  
   125    # Your app's description.
   126    # Default is empty.
   127    description: "IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra"
   128  
   129    # Your app's license
   130    # Default is empty.
   131    license: Apache License 2.0
   132  
   133    # Setting this will prevent goreleaser to actually try to commit the updated
   134    # manifest leaving the responsibility of publishing it to the user.
   135    # If set to auto, the release will not be uploaded to the scoop bucket
   136    # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
   137    # Default is false.
   138    skip_upload: false
   139  
   140    # Persist data between application updates
   141    #  persist:
   142    #    - "data"
   143    #    - "config.toml"
   144  
   145    # An array of commands to be executed before an application is installed.
   146    # Default is empty.
   147    #  pre_install: ["Write-Host 'Running preinstall command'"]
   148  
   149    # An array of commands to be executed after an application is installed.
   150    # Default is empty.
   151    #  post_install: ["Write-Host 'Running postinstall command'"]
   152  
   153    # GOAMD64 to specify which amd64 version to use if there are multiple versions
   154    # from the build section.
   155    # Default is v1.
   156  #  goamd64: v3