Compare commits

...

12 Commits

Author SHA1 Message Date
b963f36b30 removed workflow
All checks were successful
continuous-integration/publish-helm Helm publish succeeded
2025-12-19 19:34:02 +11:00
0c2764dc02 Update README.md
Some checks failed
continuous-integration/publish-helm Helm publish succeeded
Helm Publish / publish (push) Has been cancelled
2025-12-19 08:29:17 +00:00
5ae6580aef Added a hostAlias to stateful set template to make runner connect internally without hitting internet
Some checks failed
Helm Publish / publish (push) Failing after 3m22s
2025-12-03 17:36:46 +11:00
81679e0e73 Changed runner url to connect cluster internal 2025-12-01 10:47:54 +11:00
30f0f2ea91 . 2025-11-21 11:44:18 +08:00
ba30f2e07a and again... 2025-11-21 11:42:33 +08:00
53d71b84a8 Fixed VERSION again 2025-11-21 11:40:46 +08:00
a30217407c Fixed YAML_VERSION 2025-11-21 11:37:24 +08:00
ae8f102b75 Push again 2025-11-21 11:34:04 +08:00
2c398537fd Added helm password secret 2025-11-21 11:31:04 +08:00
ed1547b626 remove lint 2025-11-21 11:24:40 +08:00
4a5cb25d08 Removed tag check logic 2025-11-21 11:18:20 +08:00
4 changed files with 15 additions and 78 deletions

View File

@@ -1,73 +0,0 @@
name: Helm Publish
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest # or whatever your Gitea runner labels are
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Helm
run: |
set -euo pipefail
curl -sSL https://get.helm.sh/helm-v3.15.0-linux-amd64.tar.gz -o /tmp/helm.tgz
tar xzf /tmp/helm.tgz -C /tmp
install /tmp/linux-amd64/helm /usr/local/bin/helm
- name: Install helm cm-push plugin
run: |
set -euo pipefail
helm plugin install https://github.com/chartmuseum/helm-push
- name: Determine version from git tag
run: |
set -euo pipefail
TAG="$(git describe --tags --exact-match)"
VERSION="${TAG#v}"
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
- name: Verify Chart.yaml version matches tag
run: |
set -euo pipefail
FILE="Chart.yaml"
YAML_VER="$(grep '^version:' "$FILE" | awk '{print $2}')"
if [ "$YAML_VER" != "$VERSION" ]; then
echo "Chart.yaml version ($YAML_VER) != tag version ($VERSION)"
exit 1
fi
- name: Lint and package chart
run: |
set -euo pipefail
helm lint .
helm dependency update . || true
helm package . -d /tmp
- name: Push chart to Gitea Helm registry
env:
HELM_REPO_URL: "https://gitea.apilab.us/api/packages/cscott/helm"
HELM_REPO_NAME: "gitea-helm"
HELM_USER: "cscott"
HELM_PASSWORD: "${{ secrets.GITEA_HELM_PASSWORD }}"
run: |
set -euo pipefail
helm repo add "$HELM_REPO_NAME" "$HELM_REPO_URL" \
--username "$HELM_USER" \
--password "$HELM_PASSWORD"
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
CHART_TGZ="/tmp/${NAME}-${VERSION}.tgz"
if [ ! -f "$CHART_TGZ" ]; then
echo "Expected packaged chart not found: $CHART_TGZ"
ls -l /tmp
exit 1
fi
helm cm-push "$CHART_TGZ" "$HELM_REPO_NAME"

View File

@@ -1,5 +1,5 @@
# Gitea Actions Helm Chart # Gitea Actions Helm Chart
---
This helm chart serves as the way to deploy the Gitea [act-runners](https://gitea.com/gitea/act_runner) alongside a running Gitea instance. This helm chart serves as the way to deploy the Gitea [act-runners](https://gitea.com/gitea/act_runner) alongside a running Gitea instance.
It serves as a standalone chart and does not rely on Gitea to be present in the same environment, however it needs to be able to reach a Gitea instance to function. It serves as a standalone chart and does not rely on Gitea to be present in the same environment, however it needs to be able to reach a Gitea instance to function.
The parameters which can be used to customize the deployment are described below, check those out if you want to see if something is supported. The parameters which can be used to customize the deployment are described below, check those out if you want to see if something is supported.

View File

@@ -45,6 +45,10 @@ spec:
echo "Trying again in 3 seconds..." echo "Trying again in 3 seconds..."
done done
echo "Gitea has been reached!" echo "Gitea has been reached!"
hostAliases:
- ip: 192.168.0.235
hostnames:
- "gitea.apilab.us"
containers: containers:
- name: act-runner - name: act-runner
image: "{{ include "gitea.actions.actRunner.image" . }}" image: "{{ include "gitea.actions.actRunner.image" . }}"
@@ -87,6 +91,9 @@ spec:
- name: dind - name: dind
image: "{{ include "gitea.actions.dind.image" . }}" image: "{{ include "gitea.actions.dind.image" . }}"
imagePullPolicy: {{ .Values.statefulset.dind.pullPolicy }} imagePullPolicy: {{ .Values.statefulset.dind.pullPolicy }}
args:
- "--iptables=false"
- "--ip-forward=false"
env: env:
- name: DOCKER_HOST - name: DOCKER_HOST
value: tcp://127.0.0.1:2376 value: tcp://127.0.0.1:2376

View File

@@ -40,13 +40,13 @@ statefulset:
replicas: 1 replicas: 1
timezone: Etc/UTC timezone: Etc/UTC
annotations: {} annotations: {}
labels: self-hosted labels: {}
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
extraVolumes: [] extraVolumes: []
#securityContext: {} securityContext: {}
actRunner: actRunner:
registry: "docker.gitea.com" registry: "docker.gitea.com"
@@ -83,9 +83,11 @@ statefulset:
# If the container keeps crashing in your environment, you might have to add the `DOCKER_IPTABLES_LEGACY` environment variable. # If the container keeps crashing in your environment, you might have to add the `DOCKER_IPTABLES_LEGACY` environment variable.
# See https://github.com/docker-library/docker/issues/463#issuecomment-1881909456 # See https://github.com/docker-library/docker/issues/463#issuecomment-1881909456
extraEnvs: [] extraEnvs:
# - name: "DOCKER_IPTABLES_LEGACY" # - name: "DOCKER_IPTABLES_LEGACY"
# value: "1" # value: "1"
- name: DOCKER_OPTS
value: "--iptables=false --ip-forward=false"
persistence: persistence:
size: 1Gi size: 1Gi
@@ -114,7 +116,8 @@ existingSecret: "gitea-token"
existingSecretKey: "token" existingSecretKey: "token"
## Specify the root URL of the Gitea instance ## Specify the root URL of the Gitea instance
giteaRootURL: "https://gitea.apilab.us" #giteaRootURL: "https://gitea.apilab.us"
giteaRootURL: "http://gitea-http.gitea.svc.cluster.local:3000"
## @section Global ## @section Global
# #