Gitea -> Forgejo
This commit is contained in:
parent
5d7ddb2bd9
commit
28fe386122
|
@ -11,11 +11,11 @@ buildfolder=/tmp/gitea-$$
|
|||
|
||||
if ! podman image exists ${gitea_image}:${gitea_version}; then
|
||||
mkdir ${buildfolder} &&
|
||||
curl -sSfL -- "https://dl.gitea.io/gitea/${gitea_version}/gitea-src-${gitea_version}.tar.gz" | tar xz --strip-components=1 -C ${buildfolder}/ && {
|
||||
sed_in_place "^FROM golang" "FROM docker.io/library/golang" ${buildfolder}/Dockerfile
|
||||
sed_in_place "^FROM alpine" "FROM docker.io/library/alpine" ${buildfolder}/Dockerfile
|
||||
TMPDIR=${HOME} podman image build -t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder}
|
||||
}
|
||||
curl -sSfL -- "https://codeberg.org/forgejo/forgejo/archive/v${gitea_version}.tar.gz" | tar xz --strip-components=1 -C ${buildfolder}/ && {
|
||||
sed_in_place "^FROM golang" "FROM docker.io/library/golang" ${buildfolder}/Dockerfile
|
||||
sed_in_place "^FROM alpine" "FROM docker.io/library/alpine" ${buildfolder}/Dockerfile
|
||||
TMPDIR=${HOME} podman image build -t ${gitea_image}:${gitea_version} -f ${buildfolder}/Dockerfile ${buildfolder}
|
||||
}
|
||||
rm -rf ${buildfolder}
|
||||
podman image prune -a -f --filter dangling=true
|
||||
podman image prune -a -f --filter intermediate=true
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
## vars
|
||||
gitea_image="git.garbaye.fr/garbaye/gitea"
|
||||
gitea_version='1.18.5'
|
||||
gitea_image="git.garbaye.fr/garbaye/forgejo"
|
||||
gitea_version='1.18.5-0'
|
||||
postgres_image="docker.io/library/postgres"
|
||||
postgres_version='14'
|
||||
## default vars : override with ENV var
|
||||
|
|
Loading…
Reference in a new issue