mirror of https://github.com/gogs/gogs.git
packager.io: update scripts (#5837)
* Test new buildpack and distro * Try another buildpack version * Give another try * Try another one * Best effortpull/5839/head
parent
01c8df01ec
commit
de61bb6a35
|
@ -9,9 +9,9 @@ APP_GROUP=$(${CLI} config:get APP_GROUP)
|
||||||
APP_CONFIG="/etc/${APP_NAME}/conf/app.ini"
|
APP_CONFIG="/etc/${APP_NAME}/conf/app.ini"
|
||||||
|
|
||||||
mkdir -p $(dirname ${APP_CONFIG})
|
mkdir -p $(dirname ${APP_CONFIG})
|
||||||
chown ${APP_USER}.${APP_GROUP} $(dirname ${APP_CONFIG})
|
chown "${APP_USER}"."${APP_GROUP}" $(dirname ${APP_CONFIG})
|
||||||
[ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG}
|
[ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG}
|
||||||
${CLI} config:set USER=${APP_USER}
|
${CLI} config:set USER="${APP_USER}"
|
||||||
sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG}
|
sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG}
|
||||||
sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${APP_CONFIG}
|
sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${APP_CONFIG}
|
||||||
|
|
14
.pkgr.yml
14
.pkgr.yml
|
@ -9,6 +9,8 @@ targets:
|
||||||
<<: *debian
|
<<: *debian
|
||||||
debian-10:
|
debian-10:
|
||||||
<<: *debian
|
<<: *debian
|
||||||
|
debian-11:
|
||||||
|
<<: *debian
|
||||||
ubuntu-14.04:
|
ubuntu-14.04:
|
||||||
<<: *debian
|
<<: *debian
|
||||||
ubuntu-16.04:
|
ubuntu-16.04:
|
||||||
|
@ -18,7 +20,7 @@ targets:
|
||||||
- mercurial
|
- mercurial
|
||||||
ubuntu-18.04:
|
ubuntu-18.04:
|
||||||
<<: *debian
|
<<: *debian
|
||||||
centos-6: &el
|
centos-7:
|
||||||
build_dependencies:
|
build_dependencies:
|
||||||
- pam-devel
|
- pam-devel
|
||||||
# required for go buildpack
|
# required for go buildpack
|
||||||
|
@ -26,14 +28,8 @@ targets:
|
||||||
dependencies:
|
dependencies:
|
||||||
- pam
|
- pam
|
||||||
- git
|
- git
|
||||||
centos-7:
|
|
||||||
<<: *el
|
|
||||||
before:
|
before:
|
||||||
- mv packager/Procfile .
|
- mv .packager/Procfile .
|
||||||
after:
|
after:
|
||||||
- mv bin/gogs gogs
|
- mv bin/gogs gogs
|
||||||
after_install: ./packager/hooks/postinst
|
after_install: ./.packager/hooks/postinst
|
||||||
# Can be updated after CentOS 6 support is dropped, otherwise fails with
|
|
||||||
# `fatal: bad config file line 2 in /home/pkgr/.gitconfig` because of
|
|
||||||
# https://github.com/heroku/heroku-buildpack-go/blob/f96ebebfa7605fd3916521e42ab050c81c9b947a/lib/common.sh#L238
|
|
||||||
buildpack: https://github.com/heroku/heroku-buildpack-go.git#v76
|
|
||||||
|
|
Loading…
Reference in New Issue