mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-06-07 18:19:03 +00:00
Add ability to login to AWS ECR repositories (#24)
* Add ability to login to ECR repositories
This commit is contained in:
parent
9088ccefea
commit
58898ff661
7 changed files with 1156 additions and 7 deletions
27
README.md
27
README.md
|
@ -85,5 +85,32 @@ jobs:
|
|||
# Now you can push images, and pull private ones, from ghcr.io.
|
||||
```
|
||||
|
||||
It is also possible to login to AWS ECR repositories:
|
||||
|
||||
```yaml
|
||||
name: Log in to ECR
|
||||
on:
|
||||
push:
|
||||
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
IMAGE_REGISTRY: 123456789012.dkr.ecr.eu-west-1.amazonaws.com
|
||||
|
||||
jobs:
|
||||
login:
|
||||
name: Log in to AWS ECR Registry
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Log in to AWS ECR
|
||||
uses: redhat-actions/podman-login@v1
|
||||
with:
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
|
||||
# Now you can push images, and pull private ones, from ECR.
|
||||
```
|
||||
|
||||
Refer to the [GitHub documentation](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context) <!-- markdown-link-check-disable-line -->
|
||||
for information about the `github` context object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue