From 40f3333479cac2bf2a2f6aca2c0d261f1e92c50f Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Mon, 6 Mar 2023 20:03:09 +0100 Subject: [PATCH] docs: add example for AWS ECR (#213) --- .dictionary | 2 ++ _docs/content/_index.md | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.dictionary b/.dictionary index 314721b..be38f21 100644 --- a/.dictionary +++ b/.dictionary @@ -16,3 +16,5 @@ drone-docker-buildx multiarch buildx DockerHub +ECR +GHCR diff --git a/_docs/content/_index.md b/_docs/content/_index.md index 103d23e..60f1c9b 100644 --- a/_docs/content/_index.md +++ b/_docs/content/_index.md @@ -56,6 +56,8 @@ steps: 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. +**GHCR** + ```YAML kind: pipeline name: default @@ -72,6 +74,27 @@ steps: tags: latest ``` +**AWS ECR** + +```YAML +kind: pipeline +name: default + +steps: + - name: docker + image: thegeeklab/drone-docker-buildx:23 + privileged: true + environment: + AWS_ACCESS_KEY_ID: + from_secret: aws_access_key_id + AWS_SECRET_ACCESS_KEY: + from_secret: aws_secret_access_key + settings: + registry: .dkr.ecr..amazonaws.com + repo: .dkr.ecr..amazonaws.com/octocat/example + tags: latest +``` + ## Build Build the binary with the following command: