mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
Update README to point to podman-login action
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
14046ffbeb
commit
d9817bcb47
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -151,10 +151,16 @@ sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using private images
|
## Using private images
|
||||||
If your build requires a private image, you have to `docker login` in a step before running this action.
|
|
||||||
|
If your build requires a private image, use [**podman-login**](https://github.com/redhat-actions/podman-login) action in a step before running this action to authenticate to the container image registry.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Log in to Red Hat Registry
|
- name: Log in to Red Hat Registry
|
||||||
run: echo "${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}" | docker login registry.redhat.io -u "${{ secrets.REGISTRY_REDHAT_IO_USER }}" --password-stdin
|
uses: redhat-action/podman-login@v1
|
||||||
|
with:
|
||||||
|
registry: registry.redhat.io
|
||||||
|
username: ${{ secrets.REGISTRY_REDHAT_IO_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue