gitea: ajout version
This commit is contained in:
parent
c8b296a35f
commit
534e8ecb73
|
@ -12,7 +12,9 @@ buildfolder=/tmp/gitea-$$
|
||||||
if ! podman image exists ${gitea_image}:${gitea_version}; then
|
if ! podman image exists ${gitea_image}:${gitea_version}; then
|
||||||
mkdir ${buildfolder} &&
|
mkdir ${buildfolder} &&
|
||||||
curl -sSfL -- "https://codeberg.org/forgejo/forgejo/archive/v${gitea_version}.tar.gz" | tar xz --strip-components=1 -C ${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}
|
rm -rf ${buildfolder}
|
||||||
podman image prune -a -f --filter dangling=true
|
podman image prune -a -f --filter dangling=true
|
||||||
|
|
Loading…
Reference in a new issue