github.com/droot/goreleaser@v0.66.2-0.20180420030140-c2db5fb17157/docs/990-deprecations.md (about)

     1  ---
     2  title: Deprecation notices
     3  ---
     4  
     5  This page will be used to list deprecation notices accross GoReleaser.
     6  
     7  <!--
     8  
     9  Template for new deprecations:
    10  
    11  ## property
    12  
    13  > since yyyy-mm-dd
    14  
    15  Description.
    16  
    17  Change this:
    18  
    19  ```yaml
    20  ```
    21  
    22  to this:
    23  
    24  ```yaml
    25  ```
    26  
    27   -->
    28  
    29  ## fpm
    30  
    31  > since 2018-02-17
    32  
    33  FPM is deprecated in favor of nfpm, which is a simpler alternative written
    34  in Go. The objective is to remove the ruby dependency thus simplify the
    35  CI/CD pipelines.
    36  
    37  Just replace the `fpm` keyword by `nfpm` in your `goreleaser.yaml` file.
    38  
    39  Change this:
    40  
    41  ```yaml
    42  fpm:
    43    # ...
    44  ```
    45  
    46  to this:
    47  
    48  ```yaml
    49  nfpm:
    50    # ...
    51  ```
    52  
    53  ## docker.name_template
    54  
    55  > since 2018-01-19
    56  
    57  This property was deprecated in favor of the pluralized `name_templates`.
    58  The idea is to be able to define several tags instead of just one.
    59  
    60  Change this:
    61  
    62  ```yaml
    63  dockers:
    64  - image: foo/bar
    65    name_template: '{{ .Tag }}'
    66  ```
    67  
    68  to this:
    69  
    70  ```yaml
    71  dockers:
    72  - image: foo/bar
    73    tag_templates:
    74      - '{{ .Tag }}'
    75  ```
    76  
    77  ## docker.latest
    78  
    79  > since 2018-01-19
    80  
    81  The `latest` field in Docker config is deprecated in favor of the newer
    82  `tag_templates` field.
    83  
    84  Change this:
    85  
    86  ```yaml
    87  dockers:
    88  - image: foo/bar
    89    latest: true
    90  ```
    91  
    92  to this:
    93  
    94  ```yaml
    95  dockers:
    96  - image: foo/bar
    97    tag_templates:
    98      - '{{ .Tag }}'
    99      - latest
   100  ```