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

14 lines
528 B
Bash
Raw Normal View History

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
2020-06-20 12:39:39 +00:00
tar -C / -xzf "/${CI_PROJECT_DIR}/.gitlab-ci/data.tgz"
chown -R gitea: /var/lib/gitea /etc/gitea
start_gitea
2020-06-20 12:53:29 +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