From 2d72cbed2495517dba84ec4d46e5f521ff46412b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 1 Mar 2021 10:16:42 +0100 Subject: Add feature to pass git author and git commit information to container This patch implements the feature to be able to pass author and commit hash information from the repository to the container. This can be used to set packager or package description commit hash inside the build container, if desired. Signed-off-by: Matthias Beyer --- config.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'config.toml') diff --git a/config.toml b/config.toml index c47f6c5..5f504ef 100644 --- a/config.toml +++ b/config.toml @@ -203,3 +203,19 @@ check_env_names = true # Double-check this list allowed_env = [ "FOO", "BAR" ] +# Use the git author information and pass it to each container as environment +# variable. +# The information is passed with +# +# Bob Baumeister +# +# in the environment variable named as value here. +# +# If this is not set, this feature is disabled. +#git_author = "GIT_AUTHOR_INFO" + +# Use the git hash of the repository and pass it to each container as +# environment variable. +# If this is not set, this feature is disabled. +#git_commit_hash = "GIT_COMMIT_HASH" + -- cgit v1.2.3