mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 10:10:39 +00:00
docs: add example for AWS ECR (#213)
This commit is contained in:
parent
e1e845eee9
commit
40f3333479
@ -16,3 +16,5 @@ drone-docker-buildx
|
|||||||
multiarch
|
multiarch
|
||||||
buildx
|
buildx
|
||||||
DockerHub
|
DockerHub
|
||||||
|
ECR
|
||||||
|
GHCR
|
||||||
|
@ -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.
|
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
|
```YAML
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
@ -72,6 +74,27 @@ steps:
|
|||||||
tags: latest
|
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: <account_id>.dkr.ecr.<region>.amazonaws.com
|
||||||
|
repo: <account_id>.dkr.ecr.<region>.amazonaws.com/octocat/example
|
||||||
|
tags: latest
|
||||||
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
Build the binary with the following command:
|
Build the binary with the following command:
|
||||||
|
Loading…
Reference in New Issue
Block a user