From cea7ea73f50e5f2fa86c55721b5ba6f4da9fd6dd Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Wed, 7 May 2025 16:27:46 +0100 Subject: [PATCH] docs: Add undocumented environment variables to build-container-image manual --- .../Documentation.docc/build-container-image.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Sources/swift-container-plugin/Documentation.docc/build-container-image.md b/Sources/swift-container-plugin/Documentation.docc/build-container-image.md index a5fb5c3..5b1a865 100644 --- a/Sources/swift-container-plugin/Documentation.docc/build-container-image.md +++ b/Sources/swift-container-plugin/Documentation.docc/build-container-image.md @@ -91,6 +91,21 @@ Wrap a binary in a container image and publish it. Base image on which to layer the application. (default: `swift:slim`) +- term `CONTAINERTOOL_ARCHITECTURE`: + CPU architecture. + - term `CONTAINERTOOL_OS`: Operating system to encode in the container image. (default: `Linux`) + +- term `CONTAINERTOOL_DEFAULT_USERNAME`: + Default username to use when logging into the registry. + + This username is used if there is no matching `.netrc` entry for the registry, there is no `.netrc` file, or the `--disable-netrc` option is set. + The same username is used for the source and destination registries. + +- term `CONTAINERTOOL_DEFAULT_PASSWORD`: + Default password to use when logging into the registry. + + This password is used if there is no matching `.netrc` entry for the registry, there is no `.netrc` file, or the `--disable-netrc` option is set. + The same password is used for the source and destination registries.