diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 015c632..63a8d0d 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -13,6 +13,6 @@ jobs: with: args: >- --context dir:///github/workspace - --destination git.qcampos.fr/${{ github.repository }}:latest - --destination git.qcampos.fr/${{ github.repository }}:${{ github.sha }} + --destination git.qcampos.fr/${{ github.repository }}-backend:latest + --destination git.qcampos.fr/${{ github.repository }}-backend:${{ github.sha }} --skip-tls-verify diff --git a/bootstrap/root-app.yaml b/bootstrap/root-app.yaml new file mode 100644 index 0000000..eec708d --- /dev/null +++ b/bootstrap/root-app.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: root-app + namespace: argocd +spec: + project: default + source: + repoURL: 'https://git.qcampos.fr/qcampos/system.git' + path: bootstrap + targetRevision: main + destination: + server: 'https://kubernetes.default.svc' + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true \ No newline at end of file diff --git a/bootstrap/tailscape-operator.yaml b/bootstrap/tailscape-operator.yaml new file mode 100644 index 0000000..661a659 --- /dev/null +++ b/bootstrap/tailscape-operator.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: tailscale-operator + namespace: argocd +spec: + project: default + source: + repoURL: 'https://git.qcampos.fr/qcampos/system.git' + path: system/tailscale + targetRevision: main + destination: + server: 'https://kubernetes.default.svc' + namespace: tailscale + syncPolicy: + automated: + prune: true + selfHeal: false + syncOptions: + - CreateNamespace=true \ No newline at end of file diff --git a/system/tailscale/chart.yaml b/system/tailscale/chart.yaml new file mode 100644 index 0000000..1543e77 --- /dev/null +++ b/system/tailscale/chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: tailscale-operator-wrapper +version: 1.0.0 +dependencies: + - name: tailscale-operator + version: "1.66.4" # Vérifie la dernière version stable + repository: "https://pkgs.tailscale.com/helm-charts" \ No newline at end of file diff --git a/system/tailscale/values.yaml b/system/tailscale/values.yaml new file mode 100644 index 0000000..4b7cf22 --- /dev/null +++ b/system/tailscale/values.yaml @@ -0,0 +1,6 @@ +tailscale-operator: + oauth: + clientId: "kzk7jyRgSA11CNTRL" + clientSecret: "" + + secretName: tailscale-auth \ No newline at end of file