1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/www/content/deprecations.md
Carlos Alexandro Becker a04724d6b8
clean: removed deprecated docker options (#759)
* clean: remove fpm completely

* clean: remove docker tag_template and latest
2018-08-15 10:49:28 -03:00

1.5 KiB

title menu weight hideFromIndex
Deprecation notices true 500 true

This page will be used to list deprecation notices accross GoReleaser.

Deprecate code will be removed after ~6 months from the time it was deprecated.

Active deprecation notices

No active deprecation notices at this time.

Expired deprecation notices

fpm

since 2018-02-17 removed 2017-08-15

FPM is deprecated in favor of nfpm, which is a simpler alternative written in Go. The objective is to remove the ruby dependency thus simplify the CI/CD pipelines.

Just replace the fpm keyword by nfpm in your goreleaser.yaml file.

Change this:

fpm:
  # ...

to this:

nfpm:
  # ...

docker.tag_template

since 2018-01-19 removed 2017-08-15

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.

Change this:

dockers:
- image: foo/bar
  tag_template: '{{ .Tag }}'

to this:

dockers:
- image: foo/bar
  tag_templates:
    - '{{ .Tag }}'

docker.latest

since 2018-01-19 removed 2017-08-15

The latest field in Docker config is deprecated in favor of the newer tag_templates field.

Change this:

dockers:
- image: foo/bar
  latest: true

to this:

dockers:
- image: foo/bar
  tag_templates:
    - '{{ .Tag }}'
    - latest