Compare commits

...

34 commits

Author SHA1 Message Date
e225d8f1fc fix(actions): change testing event from push to PR
All checks were successful
/ validate (pull_request) Successful in 3m6s
2026-06-12 21:47:26 +02:00
14f420a13d fix(actions): stop using argocd cli to wait for app sync, use kubectl instead
All checks were successful
/ validate (push) Successful in 3m20s
2026-06-12 21:37:28 +02:00
7e545e39c3 fix(actions): stop argocd login, use the kubernetes api directly with --core flag of argocd command
Some checks failed
/ validate (push) Failing after 2m37s
2026-06-12 21:32:26 +02:00
9715b21f69 fix(actions): create admin password during argocd install to login with
Some checks failed
/ validate (push) Failing after 1m59s
2026-06-12 21:26:17 +02:00
83c5ceda96 fix(actions): wait for argocd initial admin secret to be created
Some checks failed
/ validate (push) Failing after 2m13s
2026-06-12 21:19:40 +02:00
770e2cd1b9 fix(actions): add argocd login step
Some checks failed
/ validate (push) Failing after 2m11s
2026-06-12 21:12:41 +02:00
bb399fd508 fix(actions): fix the 'Wait for argocd sync' step logic
Some checks failed
/ validate (push) Failing after 1m53s
2026-06-12 21:08:46 +02:00
f57a22bf16 fix(actions): optimized workflow by installing argocd and sealedsecrets in parallel, manually sync argocd
Some checks failed
/ validate (push) Failing after 2m35s
2026-05-25 07:30:27 +02:00
25e490b9e0 fix(actions): rework validate workflow file to skip installation steps solved by the custom container image
All checks were successful
/ validate (push) Successful in 5m21s
2026-05-21 14:48:38 +02:00
274bd9c3d2 fix(actions): capitalize h in selfheal
All checks were successful
/ validate (push) Successful in 3m49s
2026-05-21 10:17:09 +02:00
5a77439798 fix(actions): add --server-side flag to the argocd kubectl apply since the manifest is too long
Some checks failed
/ validate (push) Failing after 2m53s
2026-05-21 10:08:38 +02:00
8d1b8269c7 fix(actions): missing dot
Some checks failed
/ validate (push) Failing after 25s
2026-05-21 10:05:58 +02:00
13f24645b9 fix(secrets): import SealedSecrets encrypted hetzner API key
Some checks failed
/ validate (push) Failing after 22s
2026-05-21 10:01:35 +02:00
63858fb115 fix(actions): install ArgoCD and SealedSecrets into the test cluster in k3d
Some checks failed
/ validate (push) Has been cancelled
2026-05-21 10:01:04 +02:00
f2dc43d684 fix(actions): add missing newline
Some checks failed
/ validate (push) Failing after 23s
2026-05-20 17:09:34 +02:00
d18ec2fd2f fix(actions): install kubectl before creating test cluster
Some checks failed
/ validate (push) Failing after 6s
2026-05-20 17:01:53 +02:00
b582c1205b fix(actions): update DOCKER_HOST env var to an internal IP that docker daemon runs on
Some checks failed
/ validate (push) Failing after 33s
2026-05-20 15:59:04 +02:00
e1c517afa3 test(actions): check if the docker daemon is reachable on loopback addresses
Some checks failed
/ validate (push) Failing after 10s
2026-05-20 15:57:19 +02:00
629f1b89e7 fix(actions): set DOCKER_HOST env var to tcp instead of unix socket
Some checks failed
/ validate (push) Failing after 6s
2026-05-20 15:53:15 +02:00
de8285b94d fix(actions): chmod +x the k3d binary before executing it
Some checks failed
/ validate (push) Failing after 8s
2026-05-20 15:51:03 +02:00
64b54ce654 fix(actions): install curl in runner during the setup
Some checks failed
/ validate (push) Failing after 5s
2026-05-20 15:47:46 +02:00
fba72df5a3 fix(forgejo): fixed indentation in yaml
Some checks failed
/ validate (push) Failing after 8s
2026-05-20 15:46:15 +02:00
e1bf8adecc fix(forgejo): remove extra indentation
Some checks failed
/ validate (push) Failing after 6s
2026-05-20 15:43:58 +02:00
3e12c659a6 fix(actions): change default shell from bash to sh in runner
Some checks failed
/ validate (push) Failing after 8s
2026-05-20 15:42:53 +02:00
1202879644 fix(actions): install bash into the runner before testing
Some checks failed
/ validate (push) Failing after 2s
2026-05-20 15:40:47 +02:00
7aaafc6fc4 fix(forgejo): switch the runner to node:22-alpine image
Some checks failed
/ validate (push) Failing after 17s
2026-05-20 15:32:21 +02:00
c5e4561cbb fix(forgejo): change runner image from node to alpine
Some checks failed
/ validate (push) Failing after 12s
2026-05-20 15:20:34 +02:00
48fb1e53a5 fix(actions): use curl to install k3d as wget had SSL errors in node:22
Some checks failed
/ validate (push) Has been cancelled
2026-05-20 15:17:37 +02:00
31cdd0704c fix(actions): install k3d binary to /tmp 2026-05-20 12:04:44 +02:00
6a7619406d fixup! fix(actions): install curl into the runner before running k3d install script
Some checks failed
/ validate (push) Failing after 15m5s
2026-05-20 11:55:35 +02:00
ccb98da243 fix(actions): install k3d binary directly instead of running the install script
Some checks failed
/ validate (push) Failing after 4s
2026-05-20 11:54:12 +02:00
b2d8c623f2 fix(actions): install curl into the runner before running k3d install script
Some checks failed
/ validate (push) Has been cancelled
2026-05-20 11:40:33 +02:00
15bee50699 fix(actions): switch k3d installation from sh to bash
Some checks failed
/ validate (push) Has been cancelled
2026-05-20 10:41:07 +02:00
0a806d8620 feat(actions): added k3d test to CI workflow on push
Some checks failed
/ validate (push) Has been cancelled
2026-05-20 10:36:31 +02:00
4 changed files with 65 additions and 10 deletions

View file

@ -1,20 +1,18 @@
on:
push:
branches:
- dev
pull_request:
jobs:
validate:
runs-on: docker
defaults:
run:
shell: sh
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install kubeconform
run: |
wget -O- https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
mv kubeconform /usr/local/bin
- name: Validate manifests
run: |
kubeconform \
@ -24,3 +22,46 @@ jobs:
-schema-location default \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
./manifests/
- name: Create test cluster
run: k3d cluster create test --wait
- name: Install ArgoCD
run: |
kubectl create namespace argocd
kubectl apply -n argocd --server-side -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.27.0/controller.yaml
kubectl wait --for=condition=available --timeout=180s \
deployment/argocd-server \
deployment/argocd-repo-server \
deployment/argocd-applicationset-controller \
-n argocd
kubectl wait --for=condition=available --timeout=60s \
deployment/sealed-secrets-controller -n kube-system
- name: Import SealedSecrets key
env:
SEALED_SECRETS_KEY: ${{ secrets.SEALED_SECRETS_KEY }}
run: |
echo "$SEALED_SECRETS_KEY" | kubectl apply -f -
kubectl rollout restart deployment/sealed-secrets-controller -n kube-system
kubectl rollout status deployment/sealed-secrets-controller -n kube-system --timeout=60s
- name: Apply ArgoCD apps
run: kubectl apply -f apps/
- name: Wait for ArgoCD sync
run: |
sleep 10
kubectl wait applications \
--all \
--namespace argocd \
--for=jsonpath='{.status.health.status}'=Healthy \
--timeout=300s
- name: Wait for all deployments
run: kubectl wait --for=condition=available --timeout=300s deployment --all --all-namespaces
- name: Cleanup
if: always()
run: k3d cluster delete test

View file

@ -15,4 +15,4 @@ spec:
syncPolicy:
automated:
prune: true
selfheal: true
selfHeal: true

View file

@ -0,0 +1,14 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: hetzner-secret
namespace: cert-manager
spec:
encryptedData:
api-token: AgBttsC0QEcJNHaLlNT6QFQzXGDeb8EJtRiQaFisGGsBmEw+Q+mwjg+9QSMqzfP7Ux8NZnUPrrFvzkYeE6AojzQEGhDAaOCBbIss/rPzr2ZYIRKLWtHJywT+pWkT4N9k6SnG6cxCI+GUw7UToSuTlVu14w9uQq1wvxrRcl6XyjmlBUr8ubOCKq9RyOJ9n408K5/7J/jdx+E2roqXo6KfDBDZFdwrQhLHmp4zAuRLTL4vdftkb7jqPyspb8fuQpcKeIrJ2yaVdw2OPkMXtQgWXjereTKyHti/3h4tAP+GlPaxV93ffPeP3j048K4SJVHW2ndm3lxA2z3LDS07+pCXKDfLwU8jiQggKUVDMEXr1zR9Ve027os0oLD9BHUHofoOSF5YLR1nTxB4PWQYXGIuoIiJDEhYZF3HQ8Q+4ZDHL9pNs6AQuoMIO4mWNPYgY5iPsGL8XKjVDafcg2qQTphz7rz3+LW3GBSzLK19vasWcgLNKZQ1iYd9d9N18+KvmJSKVCEm9OI8IA+cUSrt9HzuVfukqBr1rjFqNM9LpihR3RIve9XMI7Gj3Nd8PcpYKg6kpHxRLN6/ORNKWXaooNV+CDqfcJIkW0tLfr/VcOcvIGOKS9d5ysuy/6JEZNpU8IrKtb1oL9PW5ShtWkxQvBKL0ndnM9LMQBRIOXkIOaqomEx2MgRsZkwyEnWqzx1kpRNDLmB5ueyjWpDXOFpocf9ACzrnKb1mwuTWjVh3rBjKY9A2RY4n1UFgNd/1XVk/V4FtGfK6QdnubSaMlSaFEtOtTkEd
template:
metadata:
name: hetzner-secret
namespace: cert-manager
type: Opaque

View file

@ -24,7 +24,7 @@ spec:
--instance ${FORGEJO_INSTANCE_URL} \
--token ${FORGEJO_RUNNER_REGISTRATION_TOKEN} \
--name ${FORGEJO_RUNNER_NAME} \
--labels docker:docker://alpine:latest && \
--labels docker:docker://node:22-alpine && \
sleep 5 && \
forgejo-runner daemon
env: