docs: add example for custom registires

This commit is contained in:
Robert Kaussow 2022-12-21 09:44:36 +01:00
parent 3087aad807
commit 660cc26b71
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 26 additions and 1 deletions

View File

@ -15,3 +15,4 @@ host:ip
drone-docker-buildx
multiarch
buildx
DockerHub

View File

@ -50,6 +50,28 @@ steps:
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
### Examples
**Push to other registries than DockerHub:**
If the created image is to be pushed to registries other than the default DockerHub, it is necessary to set `registry` and `repo` as fully-qualified name.
```YAML
kind: pipeline
name: default
steps:
- name: docker
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
registry: ghcr.io
username: octocat
password: secret-access-token
repo: ghcr.io/octocat/example
tags: latest
```
## Build
Build the binary with the following command:

View File

@ -191,7 +191,9 @@ properties:
required: false
- name: repo
description: Repository name for the image.
description: |
Repository name for the image. If the image is to be pushed to registries other than the default DockerHub,
it is necessary to set `repo` as fully-qualified name.
type: string
required: false