From 766484a12a6bdd9444ee92f0a90a4a475d379a7c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:25:25 +0000 Subject: [PATCH] Testing --- .gitea/workflows/build.yaml | 12 +++++------- argo.yaml | 18 ++++++++++++++++++ k8s/deployment.yaml | 10 ++++++++++ 3 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 argo.yaml create mode 100644 k8s/deployment.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9f6cc95..f4f5254 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,11 +24,9 @@ jobs: # pull: true # no-cache: true # tags: "git.vanespen.dev/evanespen/blog:latest" - - name: Setup argocd + - name: Setup Kubectl run: | - git config --global user.name gitea - git config --global user.email gitea@git.vanespen.dev - wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz - tar xzvf argocd-autopilot-linux-amd64.tar.gz - GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/evanespen/blog.git - + mkdir ~/.kube && echo ${{ secrets.KUBECONFIG }} > ~/.kube/config + apt update && apt install -y kubectl + kubectl apply -f argo.yaml + diff --git a/argo.yaml b/argo.yaml new file mode 100644 index 0000000..6852366 --- /dev/null +++ b/argo.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: blog-argo + namespace: argocd +spec: + project: default + source: + repoURL: "https://git.vanespen.dev/evanespen/blog" + path: "k8s" + targetRevision: developer + destination: + server: "https://kubernetes.default.svc" + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000..a298252 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Pod +metadata: + name: blog-pod +spec: + containers: + - name: blog-container + image: git.vanespen.dev/evanespen/blog:latest + ports: + - containerPort: 80