github.com/szyn/goreleaser@v0.76.1-0.20180517112710-333da09a1297/www/content/deprecations.md (about)

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