2024-03-03 10:53:17 -03:00
|
|
|
# DockerHub
|
|
|
|
|
2024-07-17 10:56:36 -03:00
|
|
|
<!-- md:pro -->
|
2024-03-03 10:53:17 -03:00
|
|
|
|
2024-04-02 10:49:56 -06:00
|
|
|
DockerHub allows you to set an image description and a full description.
|
2024-03-03 10:53:17 -03:00
|
|
|
However, this is not possible via `docker push`.
|
|
|
|
This pipe allows you to configure these fields and ensures they are set when
|
|
|
|
publishing your releases.
|
|
|
|
|
2024-04-02 10:49:56 -06:00
|
|
|
You also have plenty of customization options:
|
2024-03-03 10:53:17 -03:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
# goreleaser.yaml
|
|
|
|
|
2024-03-29 21:22:49 -03:00
|
|
|
dockerhub:
|
2024-04-02 10:49:56 -06:00
|
|
|
- # Your hub.docker.com username. Must have 'editor' permissions
|
2024-03-03 10:53:17 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: "{{ .Env.DOCKER_USERNAME }}".
|
|
|
|
# Templates: allowed.
|
2024-04-01 10:26:09 -03:00
|
|
|
username: "john.doe"
|
2024-03-03 10:53:17 -03:00
|
|
|
|
|
|
|
# Environment variable name to get the push token from.
|
|
|
|
# You might want to change it if you have multiple dockerhub configurations.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
|
|
|
# Default: "DOCKER_PASSWORD".
|
2024-04-01 10:26:09 -03:00
|
|
|
secret_name: DOCKER_TOKEN
|
2024-03-03 10:53:17 -03:00
|
|
|
|
2024-03-29 15:54:47 -03:00
|
|
|
# Images to apply the description and/or full description to.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-03-29 15:54:47 -03:00
|
|
|
images:
|
|
|
|
- goreleaser/goreleaser
|
|
|
|
- goreleaser/goreleaser-pro
|
|
|
|
|
2024-04-01 10:26:09 -03:00
|
|
|
# Disables the configuration feature in some conditions, for instance, when
|
|
|
|
# publishing patch releases.
|
|
|
|
# Any value different of 'true' will be considered 'false'.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-04-01 10:26:09 -03:00
|
|
|
disable: "{{gt .Patch 0}}"
|
|
|
|
|
2024-03-03 10:53:17 -03:00
|
|
|
# The short description of the image.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-03-03 10:53:17 -03:00
|
|
|
description: A short description
|
|
|
|
|
|
|
|
# The full description of the image.
|
|
|
|
#
|
|
|
|
# It can be a string directly, or you can use `from_url` or `from_file` to
|
|
|
|
# source it from somewhere else.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-03-03 10:53:17 -03:00
|
|
|
full_description:
|
|
|
|
# Loads from an URL.
|
|
|
|
from_url:
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-03-03 10:53:17 -03:00
|
|
|
url: https://foo.bar/README.md
|
|
|
|
headers:
|
|
|
|
x-api-token: "${MYCOMPANY_TOKEN}"
|
|
|
|
|
|
|
|
# Loads from a local file.
|
|
|
|
# Overrides `from_url`.
|
|
|
|
from_file:
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-03-03 10:53:17 -03:00
|
|
|
path: ./README.md
|
|
|
|
```
|
|
|
|
|
2024-07-17 10:56:36 -03:00
|
|
|
<!-- md:templates -->
|