github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/.goreleaser.yml (about) 1 # Fixed by hand 2 3 # Check the documentation at http://goreleaser.com 4 # This project needs CGO_ENABLED=1 and the cross-compiler toolchains for 5 # - arm64 6 # - macOS (only 10.15 is supported) 7 # - amd64 8 9 10 builds: 11 - id: std-linux 12 13 flags: 14 - -tags=goplugin 15 ldflags: 16 - -X gateway.VERSION={{.Version}} -X gateway.commit={{.FullCommit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser 17 goos: 18 - linux 19 goarch: 20 - amd64 21 - id: std-darwin 22 ldflags: 23 - -X gateway.VERSION={{.Version}} -X gateway.commit={{.FullCommit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser 24 env: 25 - CC=o64-clang 26 goos: 27 - darwin 28 goarch: 29 - amd64 30 - id: std-arm64 31 32 flags: 33 - -tags=goplugin 34 ldflags: 35 - -X gateway.VERSION={{.Version}} -X gateway.commit={{.FullCommit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser 36 env: 37 - CC=aarch64-linux-gnu-gcc 38 goos: 39 - linux 40 goarch: 41 - arm64 42 # static builds strip symbols and do not allow plugins 43 - id: static-amd64 44 ldflags: 45 - -s -w -X gateway.VERSION={{.Version}} -X gateway.commit={{.FullCommit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser 46 - -linkmode external -extldflags -static 47 goos: 48 - linux 49 goarch: 50 - amd64 51 52 53 54 dockers: 55 - ids: 56 - std 57 image_templates: 58 - "tykio/tyk-gateway:{{ .Tag }}-amd64" 59 - "docker.tyk.io/tyk-gateway/tyk-gateway:{{ .Tag }}-amd64" 60 build_flag_templates: 61 - "--build-arg=PORTS=8080" 62 - "--platform=linux/amd64" 63 - "--label=org.opencontainers.image.created={{.Date}}" 64 - "--label=org.opencontainers.image.title={{.ProjectName}}" 65 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 66 - "--label=org.opencontainers.image.version={{.Version}}" 67 use_buildx: true 68 goarch: amd64 69 goos: linux 70 dockerfile: Dockerfile.std 71 extra_files: 72 - "install/" 73 - "README.md" 74 - "LICENSE.md" 75 - "apps/app_sample.json" 76 - "templates" 77 - "middleware" 78 - "event_handlers/sample" 79 - "policies" 80 - "coprocess" 81 - "tyk.conf.example" 82 83 - ids: 84 - std 85 image_templates: 86 - "tykio/tyk-gateway:{{ .Tag }}-arm64" 87 - "docker.tyk.io/tyk-gateway/tyk-gateway:{{ .Tag }}-arm64" 88 build_flag_templates: 89 - "--build-arg=PORTS=8080" 90 - "--platform=linux/arm64" 91 - "--label=org.opencontainers.image.created={{.Date}}" 92 - "--label=org.opencontainers.image.title={{.ProjectName}}-arm64" 93 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 94 - "--label=org.opencontainers.image.version={{.Version}}" 95 use_buildx: true 96 goarch: arm64 97 goos: linux 98 dockerfile: Dockerfile.std 99 extra_files: 100 - "install/" 101 - "README.md" 102 - "LICENSE.md" 103 - "apps/app_sample.json" 104 - "templates" 105 - "middleware" 106 - "event_handlers/sample" 107 - "policies" 108 - "coprocess" 109 - "tyk.conf.example" 110 111 - ids: 112 - static-amd64 113 image_templates: 114 - "tykio/tyk-gateway:s{{ .Version }}" 115 - "tykio/tyk-gateway:s{{ .Major }}.{{ .Minor }}" 116 - "docker.tyk.io/tyk-gateway/tyk-gateway:s{{ .Version }}" 117 - "docker.tyk.io/tyk-gateway/tyk-gateway:s{{ .Major }}.{{ .Minor }}" 118 build_flag_templates: 119 - "--build-arg=PORTS=8080" 120 - "--label=org.opencontainers.image.created={{.Date}}" 121 - "--label=org.opencontainers.image.title={{.ProjectName}}-slim" 122 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 123 - "--label=org.opencontainers.image.version={{.Version}}" 124 goarch: amd64 125 goos: linux 126 dockerfile: Dockerfile.slim 127 extra_files: 128 - "install/" 129 - "README.md" 130 - "LICENSE.md" 131 - "apps/app_sample.json" 132 - "templates" 133 - "middleware" 134 - "event_handlers/sample" 135 - "policies" 136 - "coprocess" 137 - "tyk.conf.example" 138 139 - ids: 140 - std 141 image_templates: 142 - "tykio/tyk-hybrid-docker:{{ .Tag }}-amd64" 143 build_flag_templates: 144 - "--platform=linux/amd64" 145 - "--label=org.opencontainers.image.created={{.Date}}" 146 - "--label=org.opencontainers.image.title={{.ProjectName}}-hybrid" 147 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 148 - "--label=org.opencontainers.image.version={{.Version}}" 149 use_buildx: true 150 goarch: amd64 151 goos: linux 152 dockerfile: images/hybrid/Dockerfile 153 extra_files: 154 - "images/hybrid/" 155 - ids: 156 - std 157 image_templates: 158 - "tykio/tyk-hybrid-docker:{{ .Tag }}-arm64" 159 build_flag_templates: 160 - "--platform=linux/arm64" 161 - "--label=org.opencontainers.image.created={{.Date}}" 162 - "--label=org.opencontainers.image.title={{.ProjectName}}-hybrid" 163 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 164 - "--label=org.opencontainers.image.version={{.Version}}" 165 use_buildx: true 166 goarch: arm64 167 goos: linux 168 dockerfile: images/hybrid/Dockerfile 169 extra_files: 170 - "images/hybrid/" 171 - ids: 172 - std 173 image_templates: 174 - "tykio/tyk-plugin-compiler:{{ .Tag }}" 175 - "tykio/tyk-plugin-compiler:v{{ .Major }}.{{ .Minor }}{{.Prerelease}}" 176 build_flag_templates: 177 - "--build-arg=branch={{ .Branch }}" 178 - "--label=org.opencontainers.image.created={{.Date}}" 179 - "--label=org.opencontainers.image.title=tyk-plugin-compiler" 180 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 181 - "--label=org.opencontainers.image.version={{.Version}}" 182 goarch: amd64 183 goos: linux 184 dockerfile: images/plugin-compiler/Dockerfile 185 extra_files: 186 - "images/plugin-compiler/" 187 - "vendor" 188 189 docker_manifests: 190 - name_template: tykio/tyk-gateway:{{ .Tag }} 191 image_templates: 192 - tykio/tyk-gateway:{{ .Tag }}-amd64 193 - tykio/tyk-gateway:{{ .Tag }}-arm64 194 - name_template: tykio/tyk-gateway:v{{ .Major }}.{{ .Minor }}{{.Prerelease}} 195 image_templates: 196 - tykio/tyk-gateway:{{ .Tag }}-amd64 197 - tykio/tyk-gateway:{{ .Tag }}-arm64 198 - name_template: tykio/tyk-hybrid-docker:{{ .Tag }} 199 image_templates: 200 - tykio/tyk-hybrid-docker:{{ .Tag }}-amd64 201 - tykio/tyk-hybrid-docker:{{ .Tag }}-arm64 202 203 204 nfpms: 205 - id: std 206 vendor: "Tyk Technologies Ltd" 207 homepage: "https://tyk.io" 208 maintainer: "Tyk <info@tyk.io>" 209 description: Tyk API Gateway 210 package_name: tyk-gateway 211 builds: 212 213 - std-linux 214 - std-arm64 215 formats: 216 - deb 217 - rpm 218 contents: 219 - src: "README.md" 220 dst: "/opt/share/docs/tyk-gateway/README.md" 221 - src: "install/*" 222 dst: "/opt/tyk-gateway/install" 223 - src: /opt/tyk-gateway 224 dst: /opt/tyk 225 type: "symlink" 226 - src: "LICENSE.md" 227 dst: "/opt/share/docs/tyk-gateway/LICENSE.md" 228 - src: "apps/*" 229 dst: "/opt/tyk-gateway/apps" 230 - src: "templates/*.json" 231 dst: "/opt/tyk-gateway/templates" 232 - src: "middleware/*.js" 233 dst: "/opt/tyk-gateway/middleware" 234 - src: "event_handlers/sample/*.js" 235 dst: "/opt/tyk-gateway/event_handlers/sample" 236 - src: "policies/*.json" 237 dst: "/opt/tyk-gateway/policies" 238 - src: "coprocess/*" 239 dst: "/opt/tyk-gateway/coprocess" 240 # in the repo coprocess/python/proto is a symlink, so copy the files explicitly 241 - src: "coprocess/bindings/python/*" 242 dst: "/opt/tyk-gateway/coprocess/python/proto" 243 - src: tyk.conf.example 244 dst: /opt/tyk-gateway/tyk.conf 245 type: "config|noreplace" 246 scripts: 247 preinstall: "install/before_install.sh" 248 postinstall: "install/post_install.sh" 249 postremove: "install/post_remove.sh" 250 bindir: "/opt/tyk-gateway" 251 overrides: 252 rpm: 253 replacements: 254 amd64: x86_64 255 arm: aarch64 256 deb: 257 replacements: 258 arm: arm64 259 rpm: 260 signature: 261 key_file: tyk.io.signing.key 262 deb: 263 signature: 264 key_file: tyk.io.signing.key 265 type: origin 266 267 268 269 archives: 270 - id: std-linux 271 builds: 272 273 - std-linux 274 - std-darwin 275 - std-arm64 276 files: 277 - README.md 278 - "install/*" 279 - "LICENSE.md" 280 - "apps/app_sample.json" 281 - "templates/*.json" 282 - "middleware/*.js" 283 - "event_handlers/sample/*.js" 284 - "policies/*.json" 285 - "coprocess/*" 286 - tyk.conf.example 287 288 - id: static-amd64 289 name_template: "{{ .ProjectName }}_{{ .Version }}_static_{{ .Os }}_{{ .Arch }}" 290 builds: 291 - static-amd64 292 files: 293 - README.md 294 - "LICENSE.md" 295 - "apps/app_sample.json" 296 - "templates/*.json" 297 - "install/*" 298 - "middleware/*.js" 299 - "event_handlers/sample/*.js" 300 - "policies/*.json" 301 - "coprocess/*" 302 - tyk.conf.example 303 304 305 306 checksum: 307 disable: false 308 309 signs: 310 - id: std 311 artifacts: checksum 312 313 changelog: 314 sort: asc 315 filters: 316 exclude: 317 - '^utils:' 318 - (?i)typo 319 - 'Merge (pull request|branch)' 320 - '\[CI\]' 321 - '(?i)\[Buddy\]' 322 - 'cherry picked' 323 - '^rel-eng:' 324 - '^minor:' 325 326 release: 327 github: 328 owner: TykTechnologies 329 name: tyk 330 prerelease: auto 331 draft: true 332 name_template: "{{.ProjectName}}-v{{.Version}}"