Change gitea package provider.

The old one seems to have died.
This commit is contained in:
Jim Hague 2024-05-12 10:59:12 +01:00
parent 18a4347a8d
commit 49b96071a2
2 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,5 @@
APP_NAME = Gitea: Git with a cup of tea APP_NAME = Gitea: Git with a cup of tea
RUN_USER = git RUN_USER = gitea
RUN_MODE = prod RUN_MODE = prod
[database] [database]

View File

@ -1,8 +1,13 @@
git_repo_key:
file.managed:
- name: /etc/apt/trusted.gpg.d/morph027-gitea.asc
- source: https://packaging.gitlab.io/gitea/gpg.key
- skip_verify: true
gitea_repo: gitea_repo:
pkgrepo.managed: pkgrepo.managed:
- name: deb http://mirrors.dotsrc.org/osdn/storage/g/r/ra/raspbian-addons/debian precise main - name: deb https://packaging.gitlab.io/gitea gitea main
- key_url: https://apt.raspbian-addons.org/KEY.gpg - file: /etc/apt/sources.list.d/morph027-gitea.list
- file: /etc/apt/sources.list.d/respbian-addons.list
gitea: gitea:
pkg.installed pkg.installed
@ -12,6 +17,9 @@ gitea_app_ini:
- name: /etc/gitea/app.ini - name: /etc/gitea/app.ini
- source: salt://gitea/app.ini - source: salt://gitea/app.ini
- template: jinja - template: jinja
- user: gitea
- group: gitea
- mode: '0600'
service.running: service.running:
- name: gitea - name: gitea
- restart: true - restart: true
@ -21,8 +29,8 @@ gitea_app_ini:
var_lib_gitea_directory: var_lib_gitea_directory:
file.directory: file.directory:
- name: /var/lib/gitea - name: /var/lib/gitea
- user: git - user: gitea
- group: git - group: gitea
- recurse: - recurse:
- user - user
- group - group