github.com/Tyktechnologies/tyk@v2.9.5+incompatible/.goreleaser.yml (about)

     1  # Generated by: tyk-ci/wf-gen
     2  # Generated on: Tuesday 23 February 2021 08:23:01 AM UTC
     3  
     4  # Generation commands:
     5  # ./pr.zsh -branch goreleaser/more -base goreleaser/more -title Removed: vol mount, compatibility symlink for pump -p
     6  # m4 -E -DxREPO=tyk
     7  
     8  
     9  # Check the documentation at http://goreleaser.com
    10  # This project needs CGO_ENABLED=1 and the cross-compiler toolchains for
    11  # - arm64
    12  # - macOS (only 10.15 is supported)
    13  # - amd64
    14  
    15  builds:
    16    - id: std-linux
    17      ldflags:
    18        - -X gateway.VERSION={{.Version}} -X gateway.commit={{.Commit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser
    19      goos:
    20        - linux
    21      goarch:
    22        - amd64
    23    # static builds strip symbols and do not allow plugins
    24    - id: static-amd64
    25      ldflags:
    26        - -s -w -X gateway.VERSION={{.Version}} -X gateway.commit={{.Commit}} -X gateway.buildDate={{.Date}} -X gateway.builtBy=goreleaser
    27        - -linkmode external -extldflags -static
    28      goos:
    29        - linux
    30      goarch:
    31        - amd64
    32  
    33  snapshot:
    34    name_template: 0.0.0-SNAPSHOT-{{ .ShortCommit }}
    35  
    36  dockers:
    37    - ids:
    38        - std
    39      image_templates:
    40        - "tykio/tyk-gateway:{{ .Tag }}"
    41        - "tykio/tyk-gateway:v{{ .Major }}.{{ .Minor }}"
    42        - "docker.cloudsmith.io/tyk/tyk-gateway/tyk-gateway:{{ .Tag }}"
    43        - "docker.cloudsmith.io/tyk/tyk-gateway/tyk-gateway:v{{ .Major }}.{{ .Minor }}"
    44      build_flag_templates:
    45        - "--build-arg=PORTS=8080"
    46        - "--label=org.opencontainers.image.created={{.Date}}"
    47        - "--label=org.opencontainers.image.title={{.ProjectName}}"
    48        - "--label=org.opencontainers.image.revision={{.FullCommit}}"
    49        - "--label=org.opencontainers.image.version={{.Version}}"
    50      goarch: amd64
    51      goos: linux
    52      dockerfile: Dockerfile.std
    53      extra_files:
    54        - "install"
    55        - "LICENSE.md"
    56        - "apps/app_sample.json"
    57        - "templates"
    58        - "middleware"
    59        - "event_handlers/sample"
    60        - "policies"
    61        - "coprocess"
    62        - "tyk.conf.example"
    63    - ids:
    64        - static-amd64
    65      image_templates:
    66        - "tykio/tyk-gateway:slim"
    67        - "tykio/tyk-gateway:s{{ .Major }}.{{ .Minor }}"
    68      build_flag_templates:
    69        - "--build-arg=PORTS=8080"
    70        - "--label=org.opencontainers.image.created={{.Date}}"
    71        - "--label=org.opencontainers.image.title={{.ProjectName}}-slim"
    72        - "--label=org.opencontainers.image.revision={{.FullCommit}}"
    73        - "--label=org.opencontainers.image.version={{.Version}}"
    74      goarch: amd64
    75      goos: linux
    76      dockerfile: Dockerfile.slim
    77      extra_files:
    78        - "install"
    79        - "LICENSE.md"
    80        - "apps/app_sample.json"
    81        - "templates"
    82        - "middleware"
    83        - "event_handlers/sample"
    84        - "policies"
    85        - "coprocess"
    86        - "tyk.conf.example"
    87    - ids:
    88        - std
    89      image_templates:
    90        - "tykio/tyk-hybrid-docker:{{ .Tag }}"
    91        - "tykio/tyk-hybrid-docker:v{{ .Major }}.{{ .Minor }}"
    92      build_flag_templates:
    93        - "--label=org.opencontainers.image.created={{.Date}}"
    94        - "--label=org.opencontainers.image.title={{.ProjectName}}-hybrid"
    95        - "--label=org.opencontainers.image.revision={{.FullCommit}}"
    96        - "--label=org.opencontainers.image.version={{.Version}}"
    97      goarch: amd64
    98      goos: linux
    99      dockerfile: images/hybrid/Dockerfile
   100      skip_push: auto
   101      extra_files:
   102        - "images/hybrid/"
   103    - ids:
   104        - std
   105      image_templates:
   106        - "tykio/tyk-plugin-compiler:{{ .Tag }}"
   107        - "tykio/tyk-plugin-compiler:v{{ .Major }}.{{ .Minor }}"
   108      build_flag_templates:
   109        - "--build-arg=TYK_GW_TAG={{ .Tag }}"
   110        - "--label=org.opencontainers.image.created={{.Date}}"
   111        - "--label=org.opencontainers.image.title={{.ProjectName}}-plugin-compiler"
   112        - "--label=org.opencontainers.image.revision={{.FullCommit}}"
   113        - "--label=org.opencontainers.image.version={{.Version}}"
   114      goarch: amd64
   115      goos: linux
   116      dockerfile: images/plugin-compiler/Dockerfile
   117      skip_push: auto
   118      extra_files:
   119        - "images/plugin-compiler/"
   120  
   121  nfpms:
   122    - id: std
   123      vendor: "Tyk Technologies Ltd"
   124      homepage: "https://tyk.io"
   125      maintainer: "Tyk <info@tyk.io>"
   126      description: Tyk API Gateway
   127      package_name: tyk-gateway
   128      builds:
   129        - std-linux
   130      formats:
   131        - deb
   132        - rpm
   133      contents:
   134        - src: "README.md"
   135          dst: "/opt/share/docs/tyk/README.md"
   136        - src: "LICENSE.md"
   137          dst: "/opt/share/docs/tyk/LICENSE.md"
   138        - src: "/opt/tyk"
   139          dst: "/opt/tyk-gateway"
   140          type: "symlink"
   141        - src: "apps/app_sample.json"
   142          dst: "/opt/tyk/apps"
   143        - src: "templates/*.json"
   144          dst: "/opt/tyk/templates"
   145        - src: "install/*"
   146          dst: "/opt/tyk/install"
   147        - src: "middleware/*.js"
   148          dst: "/opt/tyk/middleware"
   149        - src: "event_handlers/sample/*.js"
   150          dst: "/opt/tyk/event_handlers/sample"
   151        - src: "policies/*.json"
   152          dst: "/opt/tyk/policies"
   153        - src: "coprocess/*"
   154          dst: "/opt/tyk/coprocess"
   155        - src: tyk.conf.example
   156          dst: /opt/tyk/tyk.conf
   157          type: "config|noreplace"
   158      scripts:
   159        preinstall: "install/before_install.sh"
   160        postinstall: "install/post_install.sh"
   161        postremove: "install/post_remove.sh"
   162      bindir: "/opt/tyk"
   163      overrides:
   164        rpm:
   165          replacements:
   166            amd64: x86_64
   167      rpm:
   168        signature:
   169          key_file: tyk.io.signing.key
   170      deb:
   171        signature:
   172          key_file: tyk.io.signing.key
   173          type: origin
   174  
   175  
   176  archives:
   177  - id: std-linux
   178    builds:
   179      - std-linux
   180    files:
   181      - README.md
   182      - "LICENSE.md"
   183      - "apps/app_sample.json"
   184      - "templates/*.json"
   185      - "install/*"
   186      - "middleware/*.js"
   187      - "event_handlers/sample/*.js"
   188      - "policies/*.json"
   189      - "coprocess/*"
   190      - tyk.conf.example
   191  
   192  - id: static-amd64
   193    name_template: "{{ .ProjectName }}_{{ .Version }}_static_{{ .Os }}_{{ .Arch }}"
   194    builds:
   195      - static-amd64
   196    files:
   197      - README.md
   198      - "LICENSE.md"
   199      - "apps/app_sample.json"
   200      - "templates/*.json"
   201      - "install/*"
   202      - "middleware/*.js"
   203      - "event_handlers/sample/*.js"
   204      - "policies/*.json"
   205      - "coprocess/*"
   206      - tyk.conf.example
   207  
   208  
   209  checksum:
   210    disable: false
   211  
   212  signs:
   213    - id: std
   214      artifacts: checksum
   215  
   216  changelog:
   217    sort: asc
   218    filters:
   219      exclude:
   220      - '^utils:'
   221      - (?i)typo
   222      - 'Merge (pull request|branch)'
   223      - '\[CI\]'
   224      - '(?i)\[Buddy\]'
   225      - 'cherry picked'
   226      - '^rel-eng:'
   227      - '^minor:'