From 8d008737e1bef86c16b49c20d86ae718f9206576 Mon Sep 17 00:00:00 2001 From: thegeeklab-bot Date: Wed, 9 Aug 2023 09:46:40 +0000 Subject: [PATCH] auto-update documentation --- content/_index.md | 30 ++++++++++++++++++++++++++++++ data/data.yaml | 7 ++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index ce1585e..d9ecb25 100644 --- a/content/_index.md +++ b/content/_index.md @@ -95,6 +95,36 @@ steps: tags: latest ``` +**Multiple registries:** + +```yaml +kind: pipeline +name: default + +steps: + - name: docker + image: thegeeklab/drone-docker-buildx:23 + privileged: true + environment: + DOCKER_REGISTRY_PASSWORD: + from_secret: docker_registry_password + GITHUB_REGISTRY_PASSWORD: + from_secret: github_registry_password + settings: + repo: + - octocat/example + - ghcr.io/octocat/example + tags: latest + registries: | + registries: + - username: "octocat" + password: "$DOCKER_REGISTRY_PASSWORD" + - registry: "ghcr.io" + username: "octocat" + password: "$GITHUB_REGISTRY_PASSWORD" +``` + + ## Build Build the binary with the following command: diff --git a/data/data.yaml b/data/data.yaml index 5981499..fea75e6 100644 --- a/data/data.yaml +++ b/data/data.yaml @@ -208,7 +208,7 @@ properties: 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: list required: false - name: registry @@ -293,3 +293,8 @@ properties: This should be used with caution and avoided whenever possible. type: list required: false + + - name: registries + description: Credentials for multiple registries described in YAML format. Check out the Examples for more information. + type: string + required: false \ No newline at end of file