Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 40f3333

Browse files
authored
docs: add example for AWS ECR (#213)
1 parent e1e845e commit 40f3333

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.dictionary

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ drone-docker-buildx
1616
multiarch
1717
buildx
1818
DockerHub
19+
ECR
20+
GHCR

_docs/content/_index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ steps:
5656
5757
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.
5858

59+
**GHCR**
60+
5961
```YAML
6062
kind: pipeline
6163
name: default
@@ -72,6 +74,27 @@ steps:
7274
tags: latest
7375
```
7476

77+
**AWS ECR**
78+
79+
```YAML
80+
kind: pipeline
81+
name: default
82+
83+
steps:
84+
- name: docker
85+
image: thegeeklab/drone-docker-buildx:23
86+
privileged: true
87+
environment:
88+
AWS_ACCESS_KEY_ID:
89+
from_secret: aws_access_key_id
90+
AWS_SECRET_ACCESS_KEY:
91+
from_secret: aws_secret_access_key
92+
settings:
93+
registry: <account_id>.dkr.ecr.<region>.amazonaws.com
94+
repo: <account_id>.dkr.ecr.<region>.amazonaws.com/octocat/example
95+
tags: latest
96+
```
97+
7598
## Build
7699

77100
Build the binary with the following command:

0 commit comments

Comments
 (0)