diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-03-01 10:16:42 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-03-01 17:42:26 +0100 |
commit | 2d72cbed2495517dba84ec4d46e5f521ff46412b (patch) | |
tree | 6a0457bee61f0fb30e49ca3e8cdd1953399e83e9 /config.toml | |
parent | 6387e8f333aa9f5b65a5ebb8ce3d8ebeaa0fa58c (diff) |
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 <matthias.beyer@atos.net>
Diffstat (limited to 'config.toml')
-rw-r--r-- | config.toml | 16 |
1 files changed, 16 insertions, 0 deletions
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 <bob@meister.com> +# +# 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" + |