2020-06-20 12:39:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. "${CI_PROJECT_DIR}/.gitlab-ci/test.sh"
|
|
|
|
|
|
|
|
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
|
2020-06-20 12:53:29 +00:00
|
|
|
apt-get update
|
|
|
|
apt-get -y install gitea
|
2024-05-28 06:50:17 +00:00
|
|
|
install -o gitea -g gitea -m 644 "/${CI_PROJECT_DIR}/.gitlab-ci/app.ini" /etc/gitea/app.ini
|
2020-06-20 12:39:39 +00:00
|
|
|
start_gitea
|
2020-06-20 13:01:07 +00:00
|
|
|
curl -s localhost:3000/api/v1/version | jq -e '.version'
|
2023-05-27 10:26:07 +00:00
|
|
|
apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}+${PATCHLEVEL}_amd64.deb"
|
2020-06-20 12:39:39 +00:00
|
|
|
restart_gitea
|
2020-06-20 13:01:07 +00:00
|
|
|
curl -s localhost:3000/api/v1/version | jq -e '.version'
|