mirror of
https://github.com/thegeeklab/drone-docker.git
synced 2024-11-23 13:20:40 +00:00
docs: add example for custom registires (#74)
This commit is contained in:
parent
dd6fc6ce42
commit
5303f6a5ca
@ -10,3 +10,4 @@ json
|
|||||||
config
|
config
|
||||||
host:ip
|
host:ip
|
||||||
multiarch
|
multiarch
|
||||||
|
DockerHub
|
||||||
|
@ -50,6 +50,28 @@ steps:
|
|||||||
<!-- spellchecker-enable -->
|
<!-- spellchecker-enable -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- 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
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: octocat
|
||||||
|
password: secret-access-token
|
||||||
|
repo: ghcr.io/octocat/example
|
||||||
|
tags: latest
|
||||||
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
Build the binary with the following command:
|
Build the binary with the following command:
|
||||||
|
@ -147,7 +147,9 @@ properties:
|
|||||||
required: false
|
required: false
|
||||||
|
|
||||||
- name: repo
|
- 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
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user