github.com/shrimpyuk/bor@v0.2.15-0.20220224151350-fb4ec6020bae/.goreleaser.yml (about) 1 project_name: bor 2 3 release: 4 disable: false 5 draft: true 6 prerelease: auto 7 8 builds: 9 - id: darwin-amd64 10 main: ./cmd/geth 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/geth 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/geth 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/geth 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 formats: 79 - apk 80 - deb 81 - rpm 82 83 contents: 84 - src: builder/files/bor.service 85 dst: /lib/systemd/system/bor.service 86 type: config 87 - src: builder/files/genesis-mainnet-v1.json 88 dst: /etc/bor/genesis-mainnet-v1.json 89 type: config 90 - src: builder/files/genesis-testnet-v4.json 91 dst: /etc/bor/genesis-testnet-v4.json 92 type: config 93 94 overrides: 95 rpm: 96 replacements: 97 amd64: x86_64 98 99 snapshot: 100 name_template: "{{ .Tag }}.next" 101 102 dockers: 103 - image_templates: 104 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64 105 dockerfile: Dockerfile.release 106 use: buildx 107 goarch: amd64 108 ids: 109 - linux-amd64 110 build_flag_templates: 111 - --platform=linux/amd64 112 extra_files: 113 - builder/files/genesis-mainnet-v1.json 114 - builder/files/genesis-testnet-v4.json 115 116 - image_templates: 117 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64 118 dockerfile: Dockerfile.release 119 use: buildx 120 goarch: arm64 121 ids: 122 - linux-arm64 123 build_flag_templates: 124 - --platform=linux/arm64/v8 125 extra_files: 126 - builder/files/genesis-mainnet-v1.json 127 - builder/files/genesis-testnet-v4.json 128 129 docker_manifests: 130 - name_template: 0xpolygon/{{ .ProjectName }}:{{ .Version }} 131 image_templates: 132 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64 133 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64 134 135 - name_template: 0xpolygon/{{ .ProjectName }}:latest 136 image_templates: 137 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64 138 - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64 139 140 announce: 141 slack: 142 enabled: true 143 # The name of the channel that the user selected as a destination for webhook messages. 144 channel: '#code-releases'