Add note about private registries

https://github.com/redhat-actions/buildah-build/issues/19

Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
Tim Etchells 2020-12-21 12:06:14 -05:00
parent a1b98d2603
commit 75dab40354

View file

@ -193,6 +193,15 @@ jobs:
port: 8080
```
## Using private images
If your build requires a private image, you have to `docker login` in a step before running this action.
For example:
```yaml
- 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
```
## Contributing
This is an open source project open to anyone. This project welcomes contributions and suggestions!