mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-11-16 01:20:39 +00:00
commit 66bc2aea6b
Author: Robert Kaussow <mail@thegeeklab.de> Date: Wed Dec 21 09:54:17 2022 +0100 docs: add example for custom registires (#161)
This commit is contained in:
parent
4029ea5709
commit
3a05a4de6b
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user