github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/.goreleaser.yml (about)

     1  project_name: bor
     2  
     3  release:
     4    disable: true
     5    draft: true
     6    prerelease: auto
     7  
     8  builds:
     9    - id: darwin-amd64
    10      main: ./cmd/cli
    11      binary: bor
    12      goos:
    13        - darwin
    14      goarch:
    15        - amd64
    16      env:
    17        - CC=o64-clang
    18        - CXX=o64-clang++
    19      tags:
    20        - netgo
    21      ldflags:
    22        -s -w
    23  
    24    - id: darwin-arm64
    25      main: ./cmd/cli
    26      binary: bor
    27      goos:
    28        - darwin
    29      goarch:
    30        - arm64
    31      env:
    32        - CC=oa64-clang
    33        - CXX=oa64-clang++
    34      tags:
    35        - netgo
    36      ldflags:
    37        -s -w
    38  
    39    - id: linux-amd64
    40      main: ./cmd/cli
    41      binary: bor
    42      goos:
    43        - linux
    44      goarch:
    45        - amd64
    46      env:
    47        - CC=gcc
    48        - CXX=g++
    49      tags:
    50        - netgo
    51      ldflags:
    52        # We need to build a static binary because we are building in a glibc based system and running in a musl container 
    53        -s -w -extldflags "-static"
    54  
    55    - id: linux-arm64
    56      main: ./cmd/cli
    57      binary: bor
    58      goos:
    59        - linux
    60      goarch:
    61        - arm64
    62      env:
    63        - CC=aarch64-linux-gnu-gcc
    64        - CXX=aarch64-linux-gnu-g++
    65      tags:
    66        - netgo
    67      ldflags:
    68        # We need to build a static binary because we are building in a glibc based system and running in a musl container 
    69        -s -w -extldflags "-static"
    70  
    71  nfpms:
    72    - vendor: 0xPolygon
    73      homepage: https://polygon.technology
    74      maintainer: Polygon Team <team@polygon.technology>
    75      description: Polygon Blockchain
    76      license: GPLv3 LGPLv3
    77  
    78      bindir: /usr/local/bin
    79  
    80      formats:
    81        - apk
    82        - deb
    83        - rpm
    84  
    85      contents:
    86        - dst: /var/lib/bor
    87          type: dir
    88          file_info:
    89            mode: 0777
    90        - src: builder/files/bor.service
    91          dst: /lib/systemd/system/bor.service
    92          type: config
    93        - src: builder/files/genesis-mainnet-v1.json
    94          dst: /etc/bor/genesis-mainnet-v1.json
    95          type: config
    96        - src: builder/files/genesis-testnet-v4.json
    97          dst: /etc/bor/genesis-testnet-v4.json
    98          type: config
    99        - src: builder/files/config.toml
   100          dst: /var/lib/bor/config.toml
   101          type: config
   102  
   103      scripts:
   104        postinstall: builder/files/bor-post-install.sh
   105  
   106      overrides:
   107        rpm:
   108          replacements:
   109            amd64: x86_64
   110  
   111  snapshot:
   112    name_template: "{{ .Tag }}.next"
   113  
   114  dockers:
   115    - image_templates:
   116        - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
   117      dockerfile: Dockerfile.release
   118      use: buildx
   119      goarch: amd64
   120      ids:
   121        - linux-amd64
   122      build_flag_templates:
   123        - --platform=linux/amd64
   124      extra_files:
   125        - builder/files/genesis-mainnet-v1.json
   126        - builder/files/genesis-testnet-v4.json
   127  
   128    - image_templates:
   129        - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
   130      dockerfile: Dockerfile.release
   131      use: buildx
   132      goarch: arm64
   133      ids:
   134        - linux-arm64
   135      build_flag_templates:
   136        - --platform=linux/arm64/v8
   137      extra_files:
   138        - builder/files/genesis-mainnet-v1.json
   139        - builder/files/genesis-testnet-v4.json
   140  
   141  docker_manifests:
   142    - name_template: 0xpolygon/{{ .ProjectName }}:{{ .Version }}
   143      image_templates:
   144        - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
   145        - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
   146  
   147    - name_template: 0xpolygon/{{ .ProjectName }}:latest
   148      image_templates:
   149      - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
   150      - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
   151  
   152  announce:
   153    slack:
   154      enabled: true
   155      # The name of the channel that the user selected as a destination for webhook messages.
   156      channel: '#code-releases'