Add repositories;Push manifests;Change protocol
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-31 14:25:03 +02:00
parent 414b72bcb8
commit 1c60214f5a
3 changed files with 23 additions and 4 deletions

View File

@ -109,10 +109,16 @@
loop:
- organization: mc
body:
name: GitOps.Config
name: GitOps.HelmCharts
# auto_init: true
# default_branch: main
description: GitOps manifests
description: Helm charts
- organization: mc
body:
name: GitOps.ClusterAPI
# auto_init: true
# default_branch: main
description: ClusterAPI manifests
- organization: wl
body:
name: GitOps.Config

View File

@ -154,6 +154,19 @@
-f {{ capi_clustermanifest.path }} \
-o /opt/metacluster/cluster-api/new-cluster
- name: Initialize/Push git repository
ansible.builtin.shell:
cmd: |
git init
git config --global user.email "administrator@{{ vapp['metacluster.fqdn'] }}"
git config --global user.name "administrator"
git checkout -b main
git add .
git commit -m "Upload manifests"
git remote add origin https://git.{{ vapp['metacluster.fqdn'] }}/mc/GitOps.ClusterAPI.git
git push https://administrator:{{ vapp['metacluster.password'] | urlencode }}@git.{{ vapp['metacluster.fqdn'] }}/mc/GitOps.ClusterAPI.git --all
chdir: /opt/metacluster/cluster-api/new-cluster
- name: Cleanup tempfile
ansible.builtin.file:
path: "{{ capi_clustermanifest.path }}"