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
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: forgejo-runner
|
|
namespace: forgejo
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: forgejo-runner
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: forgejo-runner
|
|
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
|
|
- |
|
|
forgejo-runner register \
|
|
--no-interactive \
|
|
--instance ${FORGEJO_INSTANCE_URL} \
|
|
--token ${FORGEJO_RUNNER_REGISTRATION_TOKEN} \
|
|
--name ${FORGEJO_RUNNER_NAME} \
|
|
--labels docker:docker://forgejo.libretalk.eu/jad0s/ci-runner:latest && \
|
|
sleep 5 && \
|
|
forgejo-runner daemon
|
|
env:
|
|
- name: FORGEJO_INSTANCE_URL
|
|
value: "http://forgejo.forgejo.svc.cluster.local:3000"
|
|
- name: FORGEJO_RUNNER_REGISTRATION_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: forgejo-runner-token
|
|
key: token
|
|
- name: FORGEJO_RUNNER_NAME
|
|
value: "k3s-runner"
|
|
- name: DOCKER_HOST
|
|
value: tcp://localhost:2375
|
|
- name: DOCKER_TLS_CERTDIR
|
|
value: ""
|
|
volumeMounts:
|
|
- name: dind-storage
|
|
mountPath: /var/lib/docker
|
|
- name: dind
|
|
image: docker:dind
|
|
securityContext:
|
|
privileged: true
|
|
env:
|
|
- name: DOCKER_TLS_CERTDIR
|
|
value: ""
|
|
volumeMounts:
|
|
- name: dind-storage
|
|
mountPath: /var/lib/docker
|
|
volumes:
|
|
- name: dind-storage
|
|
emptyDir: {}
|