TP-IaC-Kubernetes/roles/gitea-helm-ha/tasks/main.yaml

20 lines
609 B
YAML

# To get the default file
# helm show values gitea-charts/gitea > values.yaml
- name: Get values
template:
src: values.yaml.j2
dest: /tmp/values.yaml
- name: install helm-git plugin
shell: helm plugin install https://github.com/aslafy-z/helm-git --version 0.15.1
- name: remove old gitea repo if exist
shell: helm repo remove gitea-charts
ignore_errors: true
- name: install gitea-ha via helm
shell: |
helm repo add gitea-charts git+https://gitea.com/gitea/helm-chart@/?ref=deployment
helm repo update
helm install -f /tmp/values.yaml gitea gitea-charts/gitea --version 0.0.0