Container: set the composer git revision during the build

When the container with osbuild-composer gets built in our CI or by
AppSRE, we do not set the composer version to any value (as we do when
we built RPMs). As a result, the version reported by composer is always
"devel". This is not useful for debugging and determining the used
version of composer. In addition, this information now gets exposed in
Koji builds, therefore it makes sense to make it useful.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-10-05 16:58:27 +02:00 committed by Tomáš Hozza
parent 21e09c75bc
commit ebc256b073
3 changed files with 11 additions and 2 deletions

View file

@ -14,6 +14,7 @@ podman \
build \
--file="distribution/Dockerfile-ubi" \
--tag="${IMAGE_NAME}:${IMAGE_TAG}" \
--build-arg="COMMIT=${IMAGE_TAG}" \
--label="quay.expires-after=1w" \
.