gitea: ajout version

This commit is contained in:
Gitouche 2023-04-16 21:38:24 +02:00
parent c8b296a35f
commit 534e8ecb73

View file

@ -12,7 +12,9 @@ buildfolder=/tmp/gitea-$$
if ! podman image exists ${gitea_image}:${gitea_version}; then
mkdir ${buildfolder} &&
curl -sSfL -- "https://codeberg.org/forgejo/forgejo/archive/v${gitea_version}.tar.gz" | tar xz --strip-components=1 -C ${buildfolder}/ && {
TMPDIR=${HOME} podman image build -t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder}
TMPDIR=${HOME} podman image build \
--label org.opencontainers.image.version="${gitea_version}" \
-t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder}
}
rm -rf ${buildfolder}
podman image prune -a -f --filter dangling=true