1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-25 12:24:44 +02:00

docs: deprecations

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-05-12 09:21:27 -03:00
parent 751bcf523a
commit 7bae28e167
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 206 additions and 230 deletions

@ -2,19 +2,20 @@
title: Deprecation notices title: Deprecation notices
--- ---
This page will be used to list deprecation notices across GoReleaser. This page is used to list deprecation notices across GoReleaser.
Deprecate code will be removed after ~6 months from the time it was deprecated. Deprecated options will be removed after ~6 months from the time they were
deprecated.
You can check your use of deprecated configurations by running: You can check your use of deprecated configurations by running:
```sh ```console
$ goreleaser check $ goreleaser check
``` ```
## Active deprecation notices ## Active deprecation notices
None. None at this time.
<!-- <!--
@ -26,21 +27,22 @@ Template for new deprecations:
Description. Description.
Change this: === "Before"
```yaml ``` yaml
``` foo: bar
```
to this: === "After"
``` yaml
```yaml foo: bar
``` ```
--> -->
## Expired deprecation notices ## Expired deprecation notices
The following options were deprecated for ~6 months and are now fully removed. The following options were deprecated in the past and were already removed.
### puts ### puts
@ -49,19 +51,18 @@ The following options were deprecated for ~6 months and are now fully removed.
The HTTP upload support was extended to also accept `POST` as a method, The HTTP upload support was extended to also accept `POST` as a method,
so the name `puts` kind of lost its meaning. so the name `puts` kind of lost its meaning.
Change this: === "Before"
```yaml ``` yaml
puts: puts:
- ... - ...
``` ```
to this: === "After"
``` yaml
```yaml uploads:
uploads: - ...
- ... ```
```
Also note that secrets environment variable name prefixes have changed from Also note that secrets environment variable name prefixes have changed from
`PUT_` to `UPLOAD_`. `PUT_` to `UPLOAD_`.
@ -73,19 +74,18 @@ Also note that secrets environment variable name prefixes have changed from
The `name_template` field was deprecated in favor of a more clear one, The `name_template` field was deprecated in favor of a more clear one,
`file_name_template`. `file_name_template`.
Change this: === "Before"
``` yaml
```yaml nfpms:
nfpms:
- name_template: foo - name_template: foo
``` ```
to this:
```yaml === "After"
nfpms: ``` yaml
nfpms:
- file_name_template: foo - file_name_template: foo
``` ```
### blob ### blob
@ -95,19 +95,17 @@ Blob was deprecated in favor of its plural form.
It was already accepting multiple inputs, but its pluralized now so its more It was already accepting multiple inputs, but its pluralized now so its more
clear. clear.
Change this: === "Before"
```yaml
```yaml blob:
blob:
# etc # etc
``` ```
to this: === "After"
```yaml
```yaml blobs:
blobs:
# etc # etc
``` ```
### sign ### sign
@ -115,20 +113,18 @@ blobs:
Sign was deprecated in favor of its plural form. Sign was deprecated in favor of its plural form.
Change this: === "Before"
```yaml
```yaml sign:
sign:
# etc # etc
``` ```
to this: === "After"
```yaml
```yaml signs:
signs:
- -
# etc # etc
``` ```
### brew ### brew
@ -138,18 +134,18 @@ Brew was deprecated in favor of its plural form.
Change this: Change this:
```yaml === "Before"
brew: ```yaml
brew:
# etc # etc
``` ```
to this: === "After"
```yaml
```yaml brews:
brews:
- -
# etc # etc
``` ```
### s3 ### s3
@ -158,22 +154,20 @@ brews:
S3 was deprecated in favor of the new `blob`, which supports S3, Azure Blob and S3 was deprecated in favor of the new `blob`, which supports S3, Azure Blob and
GCS. GCS.
Change this: === "Before"
```yaml
```yaml s3:
s3: -
-
# etc # etc
``` ```
to this: === "After"
```yaml
```yaml blobs:
blobs: -
-
provider: s3 provider: s3
# etc # etc
``` ```
ACLs should be set on the bucket, the `acl` option does not exist anymore. ACLs should be set on the bucket, the `acl` option does not exist anymore.
@ -183,20 +177,18 @@ ACLs should be set on the bucket, the `acl` option does not exist anymore.
We now allow multiple archives, so the `archive` statement will be removed. We now allow multiple archives, so the `archive` statement will be removed.
Change this: === "Before"
```yaml
```yaml archive:
archive:
format: zip format: zip
``` ```
to this: === "After"
```yaml
```yaml archives:
archives:
- id: foo - id: foo
format: zip format: zip
``` ```
### snapcraft ### snapcraft
@ -204,22 +196,20 @@ archives:
We now allow multiple Snapcraft configs, so the `snapcraft` statement will be removed. We now allow multiple Snapcraft configs, so the `snapcraft` statement will be removed.
Change this: === "Before"
```yaml
```yaml snapcraft:
snapcraft:
publish: true publish: true
# ... # ...
``` ```
to this: === "After"
```yaml
```yaml snapcrafts:
snapcrafts:
- -
publish: true publish: true
# ... # ...
``` ```
### nfpm ### nfpm
@ -227,22 +217,20 @@ snapcrafts:
We now allow multiple NFPM config, so the `nfpm` statement will be removed. We now allow multiple NFPM config, so the `nfpm` statement will be removed.
Change this: === "Before"
```yaml
```yaml nfpm:
nfpm:
formats: formats:
- deb - deb
``` ```
to this: === "After"
```yaml
```yaml nfpms:
nfpms:
- -
formats: formats:
- deb - deb
``` ```
### docker.binary ### docker.binary
@ -250,22 +238,20 @@ nfpms:
You can now create a Docker image with multiple binaries. You can now create a Docker image with multiple binaries.
Change this: === "Before"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
binary: foo binary: foo
``` ```
to this: === "After"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
binaries: binaries:
- foo - foo
``` ```
### docker.image ### docker.image
@ -275,22 +261,20 @@ This property was deprecated in favor of more flexible `image_templates`.
The idea is to be able to define several images and tags using templates instead of just one image with tag templates. The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
This flexibility allows images to be pushed to multiple registries. This flexibility allows images to be pushed to multiple registries.
Change this: === "Before"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
tag_templates: tag_templates:
- '{{ .Tag }}' - '{{ .Tag }}'
``` ```
to this: === "After"
```yaml
```yaml dockers:
dockers: - image_templates:
- image_templates:
- 'foo/bar:{{ .Tag }}' - 'foo/bar:{{ .Tag }}'
``` ```
### docker.tag_templates ### docker.tag_templates
@ -299,22 +283,20 @@ dockers:
This property was deprecated in favor of more flexible `image_templates`. This property was deprecated in favor of more flexible `image_templates`.
The idea is to be able to define several images and tags using templates instead of just one image with tag templates. The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
Change this: === "Before"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
tag_templates: tag_templates:
- '{{ .Tag }}' - '{{ .Tag }}'
``` ```
to this: === "After"
```yaml
```yaml dockers:
dockers: - image_templates:
- image_templates:
- 'foo/bar:{{ .Tag }}' - 'foo/bar:{{ .Tag }}'
``` ```
### git.short_hash ### git.short_hash
@ -324,22 +306,20 @@ This property was being used to tell GoReleaser to use short git hashes
instead of the full ones. This has been removed in favor of specific instead of the full ones. This has been removed in favor of specific
template variables (`.FullCommit` and `.ShortCommit`). template variables (`.FullCommit` and `.ShortCommit`).
Change this: === "Before"
```yaml
```yaml git:
git:
short_hash: true short_hash: true
fake: fake:
foo_template: 'blah {{ .Commit }}' foo_template: 'blah {{ .Commit }}'
``` ```
to this: === "After"
```yaml
```yaml fake:
fake:
foo_template: 'blah {{ .ShortCommit }}' foo_template: 'blah {{ .ShortCommit }}'
``` ```
### fpm ### fpm
@ -351,19 +331,17 @@ CI/CD pipelines.
Just replace the `fpm` keyword by `nfpm` in your `goreleaser.yaml` file. Just replace the `fpm` keyword by `nfpm` in your `goreleaser.yaml` file.
Change this: === "Before"
```yaml
```yaml fpm:
fpm:
# ... # ...
``` ```
to this: === "After"
```yaml
```yaml nfpm:
nfpm:
# ... # ...
``` ```
### docker.tag_template ### docker.tag_template
@ -372,22 +350,20 @@ nfpm:
This property was deprecated in favor of the pluralized `tag_templates`. This property was deprecated in favor of the pluralized `tag_templates`.
The idea is to be able to define several tags instead of just one. The idea is to be able to define several tags instead of just one.
Change this: === "Before"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
tag_template: '{{ .Tag }}' tag_template: '{{ .Tag }}'
``` ```
to this: === "After"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
tag_templates: tag_templates:
- '{{ .Tag }}' - '{{ .Tag }}'
``` ```
### docker.latest ### docker.latest
@ -396,20 +372,18 @@ dockers:
The `latest` field in Docker config is deprecated in favor of the newer The `latest` field in Docker config is deprecated in favor of the newer
`tag_templates` field. `tag_templates` field.
Change this: === "Before"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
latest: true latest: true
``` ```
to this: === "After"
```yaml
```yaml dockers:
dockers: - image: foo/bar
- image: foo/bar
tag_templates: tag_templates:
- '{{ .Tag }}' - '{{ .Tag }}'
- latest - latest
``` ```

@ -89,3 +89,5 @@ markdown_extensions:
- meta - meta
- toc: - toc:
permalink: true permalink: true
- pymdownx.tabbed
- pymdownx.superfences