diff --git a/docs/snippets/proc-building-function.md b/docs/snippets/proc-building-function.md index 4e536b7d57..bf61d0c380 100644 --- a/docs/snippets/proc-building-function.md +++ b/docs/snippets/proc-building-function.md @@ -22,3 +22,11 @@ The `build` command uses the project name and the image registry name to constru !!! note The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well. + +!!! tip "Private Registry Authentication" + For private registries that require authentication, you can set credentials using environment variables: + + - `FUNC_USERNAME`: The username for registry authentication + - `FUNC_PASSWORD`: The password for registry authentication + + These variables work with all builders: `host`, `s2i`, and `pack`. diff --git a/docs/snippets/proc-deploying-function.md b/docs/snippets/proc-deploying-function.md index 4f0b6ccb48..3ff4860a99 100644 --- a/docs/snippets/proc-deploying-function.md +++ b/docs/snippets/proc-deploying-function.md @@ -46,6 +46,14 @@ The `deploy` command uses the function project name as the Knative Service name. http://hello.default.127.0.0.1.sslip.io ``` +!!! tip "Private Registry Authentication" + For private registries that require authentication, you can set credentials using environment variables: + + - `FUNC_USERNAME`: The username for registry authentication + - `FUNC_PASSWORD`: The password for registry authentication + + These variables work with all builders: `host`, `s2i`, and `pack`. + You can verify that your function has been successfully deployed by using the `invoke` command and observing the output: === "func"