cleanup and mass update: moving from Harbor to Gitea registries and from Drone to Gitea CI/CD with Gitea Act Runner

This commit is contained in:
ace
2023-06-10 06:20:10 +03:00
parent 1283a554fe
commit a251e593c6
89 changed files with 146 additions and 595 deletions

View File

@ -0,0 +1,25 @@
- block:
- name: Set DB namespace for secret lookup
set_fact:
db_namespace: "{{ peertube_db_namespace | default(postgres_db_namespace) | default(postgres_namespace) | default(postgres_operator_namespace) | default(namespace) }}"
- name: Set DB secret name for lookup
set_fact:
db_secret_name: "peertube-owner-user.{{ postgres_db_team | default(namespace) }}-postgres.credentials.postgresql.acid.zalan.do"
- name: Lookup PeerTube DB secret
set_fact:
peertube_db_secret: "{{ lookup('k8s', kind='Secret', namespace=db_namespace, resource_name=db_secret_name) }}"
- debug:
msg: "{{ peertube_db_secret }}"
verbosity: 2
- name: Set PeerTube DB username
set_fact:
peertube_db_username: "{{ peertube_db_secret.data.username | b64decode }}"
- name: Set PeerTube DB password
set_fact:
peertube_db_password: "{{ peertube_db_secret.data.password | b64decode }}"