1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Adding docs on how to use with AWS ECR (#18744)

* Adding docs on how to use with AWS ECR, given customer confusion in https://github.com/dependabot/dependabot-core/issues/3457

* Explicitly refer to docker-registry type

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
This commit is contained in:
Mike McDonald
2021-04-14 14:45:11 -06:00
committed by GitHub
parent cda1bc9555
commit 8941ff5ce6

View File

@@ -767,6 +767,19 @@ registries:
```
{% endraw %}
The `docker-registry` type can also be used to pull from Amazon ECR using static AWS credentials.
{% raw %}
```yaml
registries:
ecr-docker:
type: docker-registry
url: https://1234567890.dkr.ecr.us-east-1.amazonaws.com
username: ${{secrets.ECR_AWS_ACCESS_KEY_ID}}
password: ${{secrets.ECR_AWS_SECRET_ACCESS_KEY}}
```
{% endraw %}
#### `git`
The `git` type supports username and password.
@@ -907,4 +920,4 @@ registries:
url: https://rubygems.pkg.github.com/octocat/github_api
token: ${{secrets.MY_GITHUB_PERSONAL_TOKEN}}
```
{% endraw %}
{% endraw %}