Compare commits
1 Commits
097fe2e0e7
...
fix/gitsyn
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45a9948682 |
@@ -25,8 +25,6 @@ metadata:
|
|||||||
namespace: gitea
|
namespace: gitea
|
||||||
labels:
|
labels:
|
||||||
app: gitea
|
app: gitea
|
||||||
annotations:
|
|
||||||
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -103,8 +101,6 @@ metadata:
|
|||||||
namespace: gitea
|
namespace: gitea
|
||||||
labels:
|
labels:
|
||||||
app: gitea-runner
|
app: gitea-runner
|
||||||
annotations:
|
|
||||||
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -119,14 +115,7 @@ spec:
|
|||||||
kubernetes.io/arch: arm64
|
kubernetes.io/arch: arm64
|
||||||
containers:
|
containers:
|
||||||
- name: gitea-runner
|
- name: gitea-runner
|
||||||
image: vegardit/gitea-act-runner:v0.12.0
|
image: vegardit/gitea-act-runner:latest
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "1Gi"
|
|
||||||
cpu: "500m"
|
|
||||||
env:
|
env:
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -112,13 +112,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: STORE_MODEL_IN_DB
|
- name: STORE_MODEL_IN_DB
|
||||||
value: "True"
|
value: "True"
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "1Gi"
|
|
||||||
cpu: "500m"
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ spec:
|
|||||||
mountPath: /prometheus
|
mountPath: /prometheus
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "1Gi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "1Gi"
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: prometheus-config
|
- name: prometheus-config
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ spec:
|
|||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
|
# Normalize the repo URL host to the correct Gitea subdomain.
|
||||||
|
# The GIT_REPO_URL secret historically contained gitea.rogi.casa,
|
||||||
|
# which 526s through Cloudflare; the working subdomain is git.rogi.casa.
|
||||||
|
export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')"
|
||||||
if [ ! -d /data/myorg/.git ]; then
|
if [ ! -d /data/myorg/.git ]; then
|
||||||
echo "Cloning repository..."
|
echo "Cloning repository..."
|
||||||
git clone ${GIT_REPO_URL} /data/myorg
|
git clone ${GIT_REPO_URL} /data/myorg
|
||||||
|
|||||||
Reference in New Issue
Block a user