DONE
Some checks failed
Build and deploy / Build (push) Failing after 2m12s

This commit is contained in:
Evrard Van Espen
2025-11-20 20:06:28 +00:00
parent c696efbac3
commit ad55d7018d
2 changed files with 2 additions and 44 deletions

View File

@@ -30,4 +30,5 @@ jobs:
echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
/usr/local/bin/kubectl apply --validate=false -f argo.yaml
sed -i "s/COMMIT_REF/$GITEA_SHA/g" argo.template.yaml
/usr/local/bin/kubectl apply --validate=false -f argo.template.yaml

View File

@@ -1,43 +0,0 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: blog
namespace: argocd
spec:
description: Project for the blog application
sourceRepos:
- https://git.vanespen.dev/evanespen/blog
destinations:
- namespace: blog
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: "*"
kind: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
syncWindows: []
roles: []
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: blog-argo
namespace: argocd
spec:
project: blog
source:
repoURL: "https://git.vanespen.dev/evanespen/blog"
targetRevision: testing-ci
path: "k8s"
destination:
server: "https://kubernetes.default.svc"
namespace: blog
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true