From 75dab403544d67ee75ea34aead49388ba9cea0a6 Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Mon, 21 Dec 2020 12:06:14 -0500 Subject: [PATCH] Add note about private registries https://github.com/redhat-actions/buildah-build/issues/19 Signed-off-by: Tim Etchells --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 41474f8..e492886 100644 --- a/README.md +++ b/README.md @@ -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!