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