diff --git a/.dictionary b/.dictionary index 9c0d8c7..869711b 100644 --- a/.dictionary +++ b/.dictionary @@ -15,3 +15,4 @@ host:ip drone-docker-buildx multiarch buildx +DockerHub diff --git a/_docs/content/_index.md b/_docs/content/_index.md index c35b663..1cbea29 100644 --- a/_docs/content/_index.md +++ b/_docs/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/_docs/data/data.yaml b/_docs/data/data.yaml index be5ba5d..40979a3 100644 --- a/_docs/data/data.yaml +++ b/_docs/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