From 3a05a4de6bda53456441be64876b30a5fca58f85 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 21 Dec 2022 08:57:17 +0000 Subject: [PATCH] commit 66bc2aea6b7b48feacecada94702e1b10c8db8df Author: Robert Kaussow Date: Wed Dec 21 09:54:17 2022 +0100 docs: add example for custom registires (#161) --- content/_index.md | 22 ++++++++++++++++++++++ data/data.yaml | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index c35b663..1cbea29 100644 --- a/content/_index.md +++ b/content/_index.md @@ -50,6 +50,28 @@ steps: +### 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: diff --git a/data/data.yaml b/data/data.yaml index be5ba5d..40979a3 100644 --- a/data/data.yaml +++ b/data/data.yaml @@ -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