Testing
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s

This commit is contained in:
Evrard Van Espen
2025-11-20 18:25:25 +00:00
parent daacb9ad9b
commit 766484a12a
3 changed files with 33 additions and 7 deletions

View File

@@ -24,11 +24,9 @@ jobs:
# pull: true # pull: true
# no-cache: true # no-cache: true
# tags: "git.vanespen.dev/evanespen/blog:latest" # tags: "git.vanespen.dev/evanespen/blog:latest"
- name: Setup argocd - name: Setup Kubectl
run: | run: |
git config --global user.name gitea mkdir ~/.kube && echo ${{ secrets.KUBECONFIG }} > ~/.kube/config
git config --global user.email gitea@git.vanespen.dev apt update && apt install -y kubectl
wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz kubectl apply -f argo.yaml
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

18
argo.yaml Normal file
View File

@@ -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

10
k8s/deployment.yaml Normal file
View File

@@ -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