1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

70 lines
1.8 KiB
Markdown
Raw Normal View History

2024-03-03 10:53:17 -03:00
# DockerHub
<!-- md:pro -->
2024-03-03 10:53:17 -03: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.
You also have plenty of customization options:
2024-03-03 10:53:17 -03:00
```yaml
# goreleaser.yaml
dockerhub:
- # Your hub.docker.com username. Must have 'editor' permissions
2024-03-03 10:53:17 -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.
#
# 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
# Images to apply the description and/or full description to.
#
# Templates: allowed.
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'.
#
# 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.
#
# 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.
#
# Templates: allowed.
2024-03-03 10:53:17 -03:00
full_description:
# Loads from an URL.
from_url:
# 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:
# Templates: allowed.
2024-03-03 10:53:17 -03:00
path: ./README.md
```
<!-- md:templates -->