add AWS ECR example

This commit is contained in:
Patrick Schratz 2023-03-06 16:54:50 +01:00 committed by GitHub
parent e1e845eee9
commit 5623651cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
**GCHR**
```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: <your account ID>.dkr.ecr.<region>.amazonaws.com
repo: <your account ID>.dkr.ecr.<region>.amazonaws.com/octocat/example
tags: latest
```
## Build
Build the binary with the following command: