1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00

add update test

This commit is contained in:
morph027 2020-06-20 14:53:29 +02:00
parent 693e213a2f
commit e0ba99af5a
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58
5 changed files with 74 additions and 6 deletions

68
.gitlab-ci/app.ini Normal file
View File

@ -0,0 +1,68 @@
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = gitea
RUN_MODE = prod

[oauth2]
JWT_SECRET = ZNx_gU2J4h3LaVbsKnH8uF2w7N6zpz3OY9hutxY1KUM

[security]
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1OTI2NTUwNjJ9.cd4bdwfg3nK0cDb_1abVCp54skt40CgSh5gN4ltgGBE
INSTALL_LOCK = true
SECRET_KEY = 8Az2FqMaPXLFaUUT6isOZpiXATm60Wv2SLjxPBtObOnHYfCsPDmIXLugLEEpM5Wl

[database]
DB_TYPE = sqlite3
HOST = 127.0.0.1:5432
NAME = gitea
USER = gitea
PASSWD =
SSL_MODE = disable
CHARSET = utf8
PATH = /var/lib/gitea/data/gitea.db

[repository]
ROOT = /var/lib/gitea/gitea-repositories

[server]
SSH_DOMAIN = localhost
DOMAIN = localhost
HTTP_PORT = 3000
ROOT_URL = http://localhost:3000/
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /var/lib/gitea/data/lfs
LFS_JWT_SECRET = TYm7pYjpik1bAJeZUMCsJGedKDQHvOi3cZdu36xMotk
OFFLINE_MODE = false

[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost

[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true

[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true

[session]
PROVIDER = file

[log]
MODE = file
LEVEL = info
ROOT_PATH = /var/lib/gitea/log

Binary file not shown.

View File

@ -2,5 +2,5 @@

. "${CI_PROJECT_DIR}/.gitlab-ci/test.sh"

apt-get -qqy install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
apt-get -y install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
start_gitea

View File

@ -4,10 +4,10 @@

curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key
echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" > /etc/apt/sources.list.d/morph027-gitea.list
apt-get -qq update
apt-get -qqy install gitea
apt-get update
apt-get -y install gitea
tar -C / -xzf "/${CI_PROJECT_DIR}/.gitlab-ci/data.tgz"
chown -R gitea: /var/lib/gitea /etc/gitea
start_gitea
apt-get -qqy install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
restart_gitea

View File

@ -20,5 +20,5 @@ restart_gitea() {
start_gitea
}

apt-get -qq update
apt-get -qqy install curl jq
apt-get update
apt-get -y install curl jq