Compare commits

...

9 commits

Author SHA1 Message Date
ab8150ccc6 feat(actions): added k3d test to CI workflow on push
Some checks failed
/ validate (pull_request) Failing after 6s
fix(actions): switch k3d installation from sh to bash

fix(actions): install curl into the runner before running k3d install script

fix(actions): install k3d binary directly instead of running the install script

fix(actions): install k3d binary to /tmp

fix(actions): use curl to install k3d as wget had SSL errors in node:22

fix(actions): install bash into the runner before testing

fix(actions): change default shell from bash to sh in runner

fix(forgejo): remove extra indentation

fix(forgejo): fixed indentation in yaml

fix(actions): install curl in runner during the setup

fix(actions): chmod +x the k3d binary before executing it

fix(actions): set DOCKER_HOST env var to tcp instead of unix socket

test(actions): check if the docker daemon is reachable on loopback addresses

fix(actions): update DOCKER_HOST env var to an internal IP that docker daemon runs on

fix(actions): install kubectl before creating test cluster

fix(actions): add missing newline

fix(actions): install ArgoCD and SealedSecrets into the test cluster in k3d

fix(actions): missing dot

fix(actions): add --server-side flag to the argocd kubectl apply since the manifest is too long

fix(actions): capitalize h in selfheal

fix(actions): rework validate workflow file to skip installation steps solved by the custom container image

fix(actions): optimized workflow by installing argocd and sealedsecrets in parallel, manually sync argocd

fix(actions): fix the 'Wait for argocd sync' step logic

fix(actions): add argocd login step

fix(actions): wait for argocd initial admin secret to be created

fix(actions): create admin password during argocd install to login with

fix(actions): stop argocd login, use the kubernetes api directly with --core flag of argocd command

fix(actions): stop using argocd cli to wait for app sync, use kubectl instead

fix(actions): change testing event from push to PR
2026-06-12 22:00:29 +02:00
ea7b51453b fix(forgejo): change the runner image from node to custom built ci-runner 2026-05-21 14:46:25 +02:00
d4fbf45f75 fixup! fix(forgejo): change ROOT_URL env var to forgejo.libretalk.eu 2026-05-21 14:27:57 +02:00
728e201ec2 fix(forgejo): change ROOT_URL env var to forgejo.libretalk.eu 2026-05-21 14:25:55 +02:00
de505f5471 fix(secrets): import SealedSecrets encrypted hetzner API key 2026-05-21 10:02:03 +02:00
49ad1b3bc0 fix: change all app repo URLs from internal forgejo URL to the external URL 2026-05-21 09:38:08 +02:00
faaf63cf25 fixup! fix: try changint the forgejo app repo from internat address to real external address 2026-05-21 09:35:18 +02:00
eb8b98f259 fix: try changint the forgejo app repo from internat address to real external address 2026-05-21 09:33:24 +02:00
0cdab3975e fix(forgejo): switch the runner to node:22-alpine image 2026-05-20 15:33:36 +02:00
10 changed files with 76 additions and 15 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

@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git
repoURL: https://forgejo.libretalk.eu/jad0s/gitops.git
targetRevision: HEAD
path: manifests/argocd
destination:

View file

@ -8,7 +8,7 @@ metadata:
spec:
project: default
source:
repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git
repoURL: https://forgejo.libretalk.eu/jad0s/gitops.git
targetRevision: HEAD
path: manifests/cert-manager
destination:

View file

@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git
repoURL: https://forgejo.libretalk.eu/jad0s/gitops.git
targetRevision: HEAD
path: manifests/forgejo
destination:

View file

@ -8,7 +8,7 @@ metadata:
spec:
project: default
source:
repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git
repoURL: https://forgejo.libretalk.eu/jad0s/gitops.git
targetRevision: HEAD
path: manifests/metallb
destination:

View file

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

View file

@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git
repoURL: https://forgejo.libretalk.eu/jad0s/gitops.git
targetRevision: main
path: manifests/traefik
destination:

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

@ -29,6 +29,8 @@ spec:
value: "false"
- name: FORGEJO__service__REGISTER_MANUAL_CONFIRM
value: "true"
- name: FORGEJO__server__ROOT_URL
value: "https://forgejo.libretalk.eu"
volumes:
- name: data
persistentVolumeClaim:

View file

@ -14,7 +14,11 @@ spec:
spec:
containers:
- name: runner
<<<<<<< HEAD
image: forgejo.libretalk.eu/jad0s/forgejo-runner:latest
=======
image: code.forgejo.org/forgejo/runner:3.5.1
>>>>>>> e1bf8ad (fix(forgejo): remove extra indentation)
command:
- sh
- -c
@ -24,7 +28,7 @@ spec:
--instance ${FORGEJO_INSTANCE_URL} \
--token ${FORGEJO_RUNNER_REGISTRATION_TOKEN} \
--name ${FORGEJO_RUNNER_NAME} \
--labels docker:docker://alpine:latest && \
--labels docker:docker://forgejo.libretalk.eu/jad0s/ci-runner:latest && \
sleep 5 && \
forgejo-runner daemon
env: