Implemented gitea database patch

This commit is contained in:
2025-07-20 18:14:20 +02:00
parent 2699edd197
commit dcb57af6f7
10 changed files with 58 additions and 33 deletions

View File

@@ -1,8 +1,7 @@
- name: "Lookup existing OIDC auth source ID"
shell: |
docker-compose -f "{{ docker_compose.directories.instance }}/docker-compose.yml" \
exec -T --user git application \
docker exec -i --user {{ gitea_user }} {{ gitea_container }} \
gitea admin auth list \
| awk -v name="{{ oidc.button_text }}" '$0 ~ name {print $1; exit}'
args:
@@ -13,8 +12,7 @@
- name: "Delete existing OIDC auth source if present"
shell: |
docker-compose -f "{{ docker_compose.directories.instance }}/docker-compose.yml" \
exec -T --user git application \
docker exec -i --user {{ gitea_user }} {{ gitea_container }} \
gitea admin auth delete --id {{ oidc_source_id_raw.stdout }}
args:
chdir: "{{ docker_compose.directories.instance }}"