Forgejo 1.19 : build from source (AppVer bugged)

This commit is contained in:
Gitouche 2023-04-17 11:02:02 +02:00
parent 427b5bd8a2
commit 7da5d789d6

View file

@ -11,7 +11,7 @@ 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}/ && { git clone -b v${gitea_version} --depth=1 https://codeberg.org/forgejo/forgejo/ ${buildfolder} && {
TMPDIR=${HOME} podman image build \ TMPDIR=${HOME} podman image build \
--label org.opencontainers.image.version="${gitea_version}" \ --label org.opencontainers.image.version="${gitea_version}" \
-t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder} -t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder}