Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 66bc2ae

Browse files
authored
docs: add example for custom registires (#161)
1 parent 3087aad commit 66bc2ae

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.dictionary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ host:ip
1515
drone-docker-buildx
1616
multiarch
1717
buildx
18+
DockerHub

_docs/content/_index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,28 @@ steps:
5050
<!-- spellchecker-enable -->
5151
<!-- prettier-ignore-end -->
5252
53+
### Examples
54+
55+
**Push to other registries than DockerHub:**
56+
57+
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.
58+
59+
```YAML
60+
kind: pipeline
61+
name: default
62+
63+
steps:
64+
- name: docker
65+
image: thegeeklab/drone-docker-buildx
66+
privileged: true
67+
settings:
68+
registry: ghcr.io
69+
username: octocat
70+
password: secret-access-token
71+
repo: ghcr.io/octocat/example
72+
tags: latest
73+
```
74+
5375
## Build
5476

5577
Build the binary with the following command:

_docs/data/data.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ properties:
191191
required: false
192192

193193
- name: repo
194-
description: Repository name for the image.
194+
description: |
195+
Repository name for the image. If the image is to be pushed to registries other than the default DockerHub,
196+
it is necessary to set `repo` as fully-qualified name.
195197
type: string
196198
required: false
197199

0 commit comments

Comments
 (0)