github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/.goreleaser.yml (about)

     1  project_name: m3
     2  builds:
     3    - id: m3dbnode
     4      main: ./src/cmd/services/m3dbnode/main/main.go
     5      binary: m3dbnode
     6      env:
     7        - CGO_ENABLED=0
     8      ldflags: >-
     9        -X {{.Env.BASE_PACKAGE}}.Revision={{.Env.GIT_REVISION}}
    10        -X {{.Env.BASE_PACKAGE}}.Branch={{.Env.GIT_BRANCH}}
    11        -X {{.Env.BASE_PACKAGE}}.Version={{.Env.GIT_VERSION}}
    12        -X {{.Env.BASE_PACKAGE}}.BuildDate={{.Env.BUILD_DATE}}
    13        -X {{.Env.BASE_PACKAGE}}.BuildTimeUnix={{.Env.BUILD_TS_UNIX}}
    14        -X {{.Env.BASE_PACKAGE}}.LogBuildInfoAtStartup=true
    15      goos:
    16        - linux
    17        - darwin
    18        # Issue #692 tracks Windows support.
    19        # - windows
    20      goarch:
    21        - amd64
    22    - id: m3coordinator
    23      main: ./src/cmd/services/m3coordinator/main/main.go
    24      binary: m3coordinator
    25      env:
    26        - CGO_ENABLED=0
    27      ldflags: >-
    28        -X {{.Env.BASE_PACKAGE}}.Revision={{.Env.GIT_REVISION}}
    29        -X {{.Env.BASE_PACKAGE}}.Branch={{.Env.GIT_BRANCH}}
    30        -X {{.Env.BASE_PACKAGE}}.Version={{.Env.GIT_VERSION}}
    31        -X {{.Env.BASE_PACKAGE}}.BuildDate={{.Env.BUILD_DATE}}
    32        -X {{.Env.BASE_PACKAGE}}.BuildTimeUnix={{.Env.BUILD_TS_UNIX}}
    33        -X {{.Env.BASE_PACKAGE}}.LogBuildInfoAtStartup=true
    34      goos:
    35        - linux
    36        - darwin
    37        # Issue #692 tracks Windows support.
    38        # - windows
    39      goarch:
    40        - amd64
    41    - id: m3query
    42      main: ./src/cmd/services/m3query/main/main.go
    43      binary: m3query
    44      env:
    45        - CGO_ENABLED=0
    46      ldflags: >-
    47        -X {{.Env.BASE_PACKAGE}}.Revision={{.Env.GIT_REVISION}}
    48        -X {{.Env.BASE_PACKAGE}}.Branch={{.Env.GIT_BRANCH}}
    49        -X {{.Env.BASE_PACKAGE}}.Version={{.Env.GIT_VERSION}}
    50        -X {{.Env.BASE_PACKAGE}}.BuildDate={{.Env.BUILD_DATE}}
    51        -X {{.Env.BASE_PACKAGE}}.BuildTimeUnix={{.Env.BUILD_TS_UNIX}}
    52        -X {{.Env.BASE_PACKAGE}}.LogBuildInfoAtStartup=true
    53      goos:
    54        - linux
    55        - darwin
    56        # Issue #692 tracks Windows support.
    57        # - windows
    58      goarch:
    59        - amd64
    60    - id: m3aggregator
    61      main: ./src/cmd/services/m3aggregator/main/main.go
    62      binary: m3aggregator
    63      env:
    64        - CGO_ENABLED=0
    65      ldflags: >-
    66        -X {{.Env.BASE_PACKAGE}}.Revision={{.Env.GIT_REVISION}}
    67        -X {{.Env.BASE_PACKAGE}}.Branch={{.Env.GIT_BRANCH}}
    68        -X {{.Env.BASE_PACKAGE}}.Version={{.Env.GIT_VERSION}}
    69        -X {{.Env.BASE_PACKAGE}}.BuildDate={{.Env.BUILD_DATE}}
    70        -X {{.Env.BASE_PACKAGE}}.BuildTimeUnix={{.Env.BUILD_TS_UNIX}}
    71        -X {{.Env.BASE_PACKAGE}}.LogBuildInfoAtStartup=true
    72      goos:
    73        - linux
    74        - darwin
    75        # Issue #692 tracks Windows support.
    76        # - windows
    77      goarch:
    78        - amd64
    79  archives:
    80    - format: tar.gz
    81      wrap_in_directory: true
    82      format_overrides:
    83        - goos: windows
    84          format: zip
    85      files:
    86        - LICENSE
    87        - README.md
    88  release:
    89    github:
    90      owner: m3db
    91      name: m3