| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: apps/v1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: git |
| 6 | namespace: mulk |
| 7 | labels: |
| 8 | name: git |
| 9 | k8s-app: git |
| 10 | spec: |
| 11 | replicas: 1 |
| 12 | selector: |
| 13 | matchLabels: |
| 14 | k8s-app: git |
| 15 | name: git |
| 16 | template: |
| 17 | metadata: |
| 18 | labels: |
| 19 | name: git |
| 20 | k8s-app: git |
| 21 | spec: |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 22 | containers: |
| Matthias Andreas Benkard | faf5a09 | 2024-03-06 12:51:07 +0100 | [diff] [blame] | 23 | - name: cgit |
| Matthias Andreas Benkard | 68157fd | 2026-11-05 15:58:35 +0100 | [diff] [blame] | 24 | # Serves cgit at / (lighttpd rewrites /<repo>/... to cgit.cgi?url=...). |
| 25 | # The image's own sshd listens on :22 and is unused; gitolite is on :2222. |
| 26 | image: docker.io/woahbase/alpine-cgit:1.3_20260805 |
| 27 | imagePullPolicy: IfNotPresent |
| 28 | env: |
| 29 | # Formatters for the about pages and syntax highlighting. |
| 30 | - name: S6_NEEDED_PACKAGES |
| 31 | value: "groff python3 py3-docutils py3-markdown py3-pygments" |
| 32 | # /home/git is gitolite's volume (owned by gitolite's uid 106), so |
| 33 | # cgit must not chown it: CGIT_SKIP_PERMFIX skips cgit's permfix, |
| 34 | # and an empty S6_USER skips the base image's usermod/chown of the |
| 35 | # user's home (scripts fall back to user "git"). |
| 36 | - name: CGIT_SKIP_PERMFIX |
| 37 | value: "true" |
| 38 | - name: S6_USER |
| 39 | value: "" |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 40 | resources: |
| 41 | limits: |
| 42 | cpu: 2000m |
| 43 | memory: 100Mi |
| 44 | requests: |
| 45 | cpu: 10m |
| 46 | memory: 50Mi |
| 47 | ports: |
| 48 | - containerPort: 80 |
| 49 | name: cgit-http |
| 50 | protocol: TCP |
| 51 | volumeMounts: |
| 52 | - name: data |
| 53 | mountPath: /home/git |
| 54 | - name: config |
| 55 | mountPath: /etc/cgitrc |
| 56 | subPath: cgitrc |
| 57 | readOnly: true |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 58 | - name: gitolite |
| Matthias Andreas Benkard | 7cc90d4 | 2026-11-05 14:43:06 +0100 | [diff] [blame] | 59 | image: docker.io/elsdoerfer/gitolite:v3.6.15-ubuntu-26.04-20260824.3 |
| 60 | imagePullPolicy: IfNotPresent |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 61 | env: [] |
| 62 | #tty: true |
| 63 | #stdin: true |
| 64 | #command: |
| 65 | # - /bin/cat |
| 66 | resources: |
| 67 | limits: |
| 68 | cpu: 2000m |
| 69 | memory: 100Mi |
| 70 | requests: |
| 71 | cpu: 10m |
| 72 | memory: 50Mi |
| 73 | ports: |
| 74 | - containerPort: 2222 |
| 75 | name: gitolite-ssh |
| 76 | protocol: TCP |
| 77 | volumeMounts: |
| 78 | - name: data |
| 79 | mountPath: /home/git/repositories |
| 80 | subPath: repositories |
| 81 | #- name: data |
| 82 | # mountPath: /home/git/projects.list |
| 83 | # subPath: projects.list |
| 84 | - name: data |
| 85 | mountPath: /home/git/.gitolite |
| 86 | subPath: .gitolite |
| 87 | - name: data |
| 88 | mountPath: /home/git/.gitolite.rc |
| 89 | subPath: .gitolite.rc |
| 90 | - name: data |
| 91 | mountPath: /home/git/.ssh |
| 92 | subPath: .ssh |
| 93 | - name: ssh |
| 94 | mountPath: /etc/ssh |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 95 | volumes: |
| 96 | - name: data |
| 97 | persistentVolumeClaim: |
| 98 | claimName: git-data |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 99 | - name: ssh |
| 100 | persistentVolumeClaim: |
| 101 | claimName: git-ssh |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 102 | - name: config |
| 103 | configMap: |
| 104 | name: git-config |
| 105 | --- |
| 106 | apiVersion: v1 |
| 107 | kind: Service |
| 108 | metadata: |
| 109 | name: git-cgit |
| 110 | namespace: mulk |
| 111 | labels: |
| 112 | k8s-app: git |
| 113 | name: git-cgit |
| 114 | spec: |
| 115 | selector: |
| 116 | k8s-app: git |
| 117 | type: ClusterIP |
| 118 | ports: |
| 119 | - name: http |
| 120 | port: 80 |
| 121 | targetPort: cgit-http |
| 122 | protocol: TCP |
| 123 | --- |
| 124 | apiVersion: v1 |
| 125 | kind: Service |
| 126 | metadata: |
| 127 | name: git-gitolite |
| 128 | namespace: mulk |
| 129 | labels: |
| 130 | k8s-app: git |
| 131 | name: git-gitolite |
| 132 | spec: |
| 133 | selector: |
| 134 | k8s-app: git |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 135 | type: NodePort |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 136 | ports: |
| 137 | - name: ssh |
| 138 | port: 22 |
| 139 | targetPort: gitolite-ssh |
| 140 | protocol: TCP |
| 141 | --- |
| 142 | apiVersion: v1 |
| 143 | kind: PersistentVolumeClaim |
| 144 | metadata: |
| 145 | name: git-data |
| 146 | namespace: mulk |
| 147 | labels: |
| 148 | name: git-data |
| 149 | k8s-app: git |
| 150 | spec: |
| 151 | accessModes: |
| 152 | - ReadWriteOnce |
| 153 | resources: |
| 154 | requests: |
| 155 | storage: 200Gi |
| 156 | storageClassName: local-path |
| 157 | --- |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 158 | apiVersion: v1 |
| 159 | kind: PersistentVolumeClaim |
| 160 | metadata: |
| 161 | name: git-ssh |
| 162 | namespace: mulk |
| 163 | labels: |
| 164 | name: git-ssh |
| 165 | k8s-app: git |
| 166 | spec: |
| 167 | accessModes: |
| 168 | - ReadWriteOnce |
| 169 | resources: |
| 170 | requests: |
| 171 | storage: 50Mi |
| 172 | storageClassName: local-path |
| 173 | --- |
| Matthias Andreas Benkard | 8528b52 | 2026-11-05 10:57:03 +0100 | [diff] [blame] | 174 | # TLS certificate for the cgit IngressRoute below. It used to be created |
| 175 | # by cert-manager's ingress-shim from an nginx Ingress, which has been |
| 176 | # removed; the HTTP-01 solver still goes through Traefik's nginx-class |
| 177 | # compat provider (see the letsencrypt-prod ClusterIssuer). |
| 178 | apiVersion: cert-manager.io/v1 |
| 179 | kind: Certificate |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 180 | metadata: |
| Matthias Andreas Benkard | 8528b52 | 2026-11-05 10:57:03 +0100 | [diff] [blame] | 181 | name: git-cgit-cgi-tls |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 182 | namespace: mulk |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 183 | spec: |
| Matthias Andreas Benkard | 8528b52 | 2026-11-05 10:57:03 +0100 | [diff] [blame] | 184 | secretName: git-cgit-cgi-tls |
| 185 | dnsNames: |
| 186 | - git.benkard.de |
| 187 | issuerRef: |
| 188 | kind: ClusterIssuer |
| 189 | name: letsencrypt-prod |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 190 | --- |
| Matthias Andreas Benkard | 8528b52 | 2026-11-05 10:57:03 +0100 | [diff] [blame] | 191 | # Traefik route for cgit. Traefik's ingress-nginx provider does not |
| 192 | # support nginx snippet annotations, and it has no global per-host rate |
| Matthias Andreas Benkard | b4f91a1 | 2026-11-04 21:36:23 +0100 | [diff] [blame] | 193 | # limit, so cgit gets a native IngressRoute instead. |
| 194 | # |
| 195 | # A crawler botnet with thousands of rotating IPs and browser user agents |
| 196 | # hammers cgit; cap it at 5 r/s in total (not per client). A single router |
| 197 | # keeps the limit in one bucket (each router gets its own limiter). |
| 198 | apiVersion: traefik.io/v1alpha1 |
| 199 | kind: Middleware |
| 200 | metadata: |
| 201 | name: git-cgit-ratelimit |
| 202 | namespace: mulk |
| 203 | spec: |
| 204 | rateLimit: |
| 205 | average: 5 |
| 206 | period: 1s |
| 207 | burst: 20 |
| 208 | sourceCriterion: |
| 209 | requestHost: true |
| 210 | --- |
| 211 | # Same as the rewrite-target of the Ingress above: strip a ".git" suffix |
| 212 | # from the repository name and route everything to cgit.cgi. |
| 213 | apiVersion: traefik.io/v1alpha1 |
| 214 | kind: Middleware |
| 215 | metadata: |
| 216 | name: git-cgit-rewrite |
| 217 | namespace: mulk |
| 218 | spec: |
| 219 | replacePathRegex: |
| 220 | regex: "^/(?:(.*)[.]git(/.*)?|(.*))$" |
| Matthias Andreas Benkard | 68157fd | 2026-11-05 15:58:35 +0100 | [diff] [blame] | 221 | replacement: "/${1}${2}${3}" |
| Matthias Andreas Benkard | b4f91a1 | 2026-11-04 21:36:23 +0100 | [diff] [blame] | 222 | --- |
| 223 | apiVersion: traefik.io/v1alpha1 |
| 224 | kind: Middleware |
| 225 | metadata: |
| 226 | name: git-cgit-https-redirect |
| 227 | namespace: mulk |
| 228 | spec: |
| 229 | redirectScheme: |
| 230 | scheme: https |
| 231 | permanent: true |
| 232 | --- |
| 233 | apiVersion: traefik.io/v1alpha1 |
| 234 | kind: IngressRoute |
| 235 | metadata: |
| 236 | name: git-cgit-cgi |
| 237 | namespace: mulk |
| 238 | spec: |
| 239 | entryPoints: |
| 240 | - websecure |
| 241 | routes: |
| 242 | - kind: Rule |
| 243 | match: Host(`git.benkard.de`) |
| 244 | middlewares: |
| 245 | - name: git-cgit-ratelimit |
| 246 | - name: git-cgit-rewrite |
| 247 | services: |
| 248 | - name: git-cgit |
| 249 | port: 80 |
| 250 | tls: |
| 251 | secretName: git-cgit-cgi-tls |
| 252 | --- |
| 253 | apiVersion: traefik.io/v1alpha1 |
| 254 | kind: IngressRoute |
| 255 | metadata: |
| 256 | name: git-cgit-cgi-http |
| 257 | namespace: mulk |
| 258 | spec: |
| 259 | entryPoints: |
| 260 | - web |
| 261 | routes: |
| 262 | - kind: Rule |
| 263 | match: Host(`git.benkard.de`) |
| 264 | middlewares: |
| 265 | - name: git-cgit-https-redirect |
| 266 | services: |
| 267 | - name: git-cgit |
| 268 | port: 80 |
| 269 | --- |
| Matthias Andreas Benkard | c756035 | 2021-09-05 12:25:13 +0200 | [diff] [blame] | 270 | apiVersion: networking.k8s.io/v1 |
| 271 | kind: Ingress |
| 272 | metadata: |
| 273 | name: git-cgit-assets |
| 274 | namespace: mulk |
| 275 | annotations: |
| 276 | cert-manager.io/cluster-issuer: letsencrypt-prod |
| 277 | kubernetes.io/ingress.class: nginx |
| 278 | nginx.ingress.kubernetes.io/rewrite-target: /cgit/$1 |
| 279 | spec: |
| 280 | rules: |
| 281 | - host: static.git.benkard.de |
| 282 | http: |
| 283 | paths: |
| 284 | - backend: |
| 285 | service: |
| 286 | name: git-cgit |
| 287 | port: |
| 288 | number: 80 |
| 289 | path: /(.*) |
| 290 | pathType: ImplementationSpecific |
| 291 | tls: |
| 292 | - hosts: |
| 293 | - static.git.benkard.de |
| 294 | secretName: git-cgit-assets-tls |
| 295 | --- |
| 296 | apiVersion: v1 |
| 297 | kind: ConfigMap |
| 298 | metadata: |
| 299 | name: git-config |
| 300 | namespace: mulk |
| 301 | data: |
| 302 | cgitrc: |- |
| 303 | css=https://static.git.benkard.de/cgit.css |
| 304 | logo=https://static.git.benkard.de/cgit.png |
| 305 | |
| 306 | remove-suffix=1 |
| 307 | enable-commit-graph=1 |
| 308 | enable-index-links=1 |
| 309 | enable-log-filecount=1 |
| 310 | enable-log-linecount=1 |
| 311 | enable-git-config=1 |
| 312 | case-sensitive-sort=0 |
| 313 | |
| 314 | virtual-root=https://git.benkard.de/ |
| 315 | |
| 316 | #cache-size=10000 |
| 317 | #cache-root=/var/cache/cgit |
| 318 | |
| 319 | # needs Pygments |
| 320 | #source-filter=/usr/lib/cgit/filters/syntax-highlighting.py |
| 321 | |
| 322 | about-filter=/usr/lib/cgit/filters/about-formatting.sh |
| 323 | |
| 324 | clone-url=https://git.benkard.de/$CGIT_REPO_URL |
| 325 | |
| 326 | readme=:README.md |
| 327 | readme=:README.markdown |
| 328 | readme=:README.html |
| 329 | readme=:README.txt |
| 330 | readme=:README |
| 331 | |
| 332 | project-list=/home/git/projects.list |
| 333 | scan-path=/home/git/repositories/ |
| 334 | |
| 335 | # |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 336 | |
| 337 | --- |
| 338 | |
| 339 | apiVersion: batch/v1 |
| 340 | kind: CronJob |
| 341 | |
| 342 | metadata: |
| 343 | name: git-github-replication |
| 344 | namespace: mulk |
| 345 | labels: &labels |
| 346 | k8s-app: git |
| 347 | |
| 348 | spec: |
| 349 | schedule: "*/120 * * * *" |
| Matthias Andreas Benkard | cbdcd90 | 2022-12-27 15:31:15 +0100 | [diff] [blame] | 350 | concurrencyPolicy: Forbid |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 351 | |
| 352 | jobTemplate: |
| 353 | |
| 354 | spec: |
| 355 | ttlSecondsAfterFinished: 3600 |
| 356 | |
| 357 | template: |
| 358 | metadata: |
| 359 | name: git-github-replication |
| 360 | labels: *labels |
| 361 | |
| 362 | spec: |
| 363 | restartPolicy: OnFailure |
| 364 | |
| 365 | volumes: |
| 366 | - name: github-secrets |
| 367 | secret: |
| 368 | secretName: github-secrets |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 369 | defaultMode: 0444 |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 370 | - name: data |
| 371 | persistentVolumeClaim: |
| 372 | claimName: git-data |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 373 | - name: etc |
| 374 | emptyDir: {} |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 375 | |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 376 | initContainers: |
| 377 | - name: init |
| 378 | image: docker.io/library/buildpack-deps:scm |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 379 | securityContext: |
| 380 | runAsUser: 100 |
| 381 | runAsGroup: 101 |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 382 | command: |
| 383 | - bash |
| 384 | - -c |
| 385 | - | |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 386 | echo git:x:106:107:Git:/home/git:/bin/sh >/etc/passwd |
| 387 | volumeMounts: |
| 388 | - name: etc |
| 389 | mountPath: /etc |
| 390 | |
| 391 | containers: |
| 392 | - name: main |
| 393 | image: docker.io/library/buildpack-deps:scm |
| 394 | securityContext: |
| 395 | runAsUser: 106 |
| 396 | runAsGroup: 107 |
| 397 | command: |
| 398 | - bash |
| 399 | - -c |
| 400 | - | |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 401 | for x in \ |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 402 | kartipalist |
| 403 | do |
| 404 | if ! test -e "/git/repositories/kellertomaten/$x.git"; then |
| 405 | printf "SKIP %s / %s\n" kellertomaten "$x" |
| 406 | continue |
| 407 | fi |
| 408 | |
| 409 | cd "/git/repositories/kellertomaten/$x.git" |
| 410 | |
| 411 | for branch in master main |
| 412 | do |
| 413 | printf "COPY %s / %s / %s\n" kellertomaten "$x" "$branch" |
| 414 | git fetch "ssh://git@gitlab.benkard.de:32222/kellertomaten/${x}.git" "$branch:$branch" && \ |
| 415 | ( git push "ssh://mulk@gerrit.benkard.de:29418/${x}.git" "$branch"; \ |
| 416 | git push "git@github.com:kellertomaten/${x}.git" "$branch" ) |
| 417 | done |
| 418 | done |
| 419 | |
| 420 | for x in \ |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 421 | .github \ |
| 422 | aendggner \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 423 | aquifer \ |
| 424 | benki \ |
| 425 | cellspp \ |
| 426 | cl-json-template \ |
| 427 | cl-mulkutils \ |
| 428 | cl-protocols \ |
| 429 | cljssss-g \ |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 430 | demos \ |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 431 | dose \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 432 | fibers \ |
| 433 | hellonet \ |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 434 | hello-world-ng \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 435 | instadump \ |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 436 | jgvariant \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 437 | json-template-r6rs \ |
| 438 | json-template-racket \ |
| 439 | json-template-typed-racket \ |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 440 | kubeia \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 441 | logikorr \ |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 442 | mulkbav \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 443 | mulkcms \ |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 444 | mulkcms2 \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 445 | mulkjournal \ |
| 446 | mulklib \ |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 447 | mulkontainers \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 448 | mulkrypt-for-racket \ |
| 449 | mulkyid \ |
| 450 | objective-cl \ |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 451 | quarkus-googlecloud-jsonlogging \ |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 452 | renovate-config \ |
| 453 | rust-samples \ |
| 454 | rust-tutorial \ |
| 455 | sb-eval2 \ |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 456 | toilet |
| 457 | do |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 458 | if ! test -e "/git/repositories/mulk/$x.git"; then |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 459 | printf "SKIP %s / %s\n" mulk "$x" |
| Matthias Andreas Benkard | 06e9d79 | 2024-03-06 12:49:24 +0100 | [diff] [blame] | 460 | continue |
| 461 | fi |
| 462 | |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 463 | cd "/git/repositories/mulk/$x.git" |
| Matthias Andreas Benkard | e96ddfb | 2024-03-06 12:50:00 +0100 | [diff] [blame] | 464 | |
| 465 | for branch in master main |
| 466 | do |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 467 | printf "COPY %s / %s / %s\n" mulk "$x" "$branch" |
| Matthias Andreas Benkard | e96ddfb | 2024-03-06 12:50:00 +0100 | [diff] [blame] | 468 | git fetch "https://gitlab.benkard.de/mulk/${x}.git" "$branch:$branch" && \ |
| 469 | ( git push "ssh://mulk@gerrit.benkard.de:29418/${x}.git" "$branch"; \ |
| 470 | git push "git@github.com:benkard/${x}.git" "$branch" ) |
| 471 | done |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 472 | done |
| Matthias Andreas Benkard | 7f8981a | 2026-11-04 11:41:17 +0100 | [diff] [blame] | 473 | |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 474 | true |
| Matthias Andreas Benkard | 11298da | 2023-04-02 18:27:17 +0200 | [diff] [blame] | 475 | env: |
| 476 | - name: HOME |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 477 | value: /home/git |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 478 | resources: |
| 479 | limits: |
| 480 | memory: 100Mi |
| 481 | requests: |
| 482 | cpu: 20m |
| 483 | memory: 100Mi |
| 484 | volumeMounts: |
| 485 | - name: github-secrets |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 486 | mountPath: /home/git/.ssh |
| Matthias Andreas Benkard | 7d78f7f | 2021-12-28 17:44:20 +0100 | [diff] [blame] | 487 | readOnly: true |
| 488 | - name: data |
| 489 | mountPath: /git |
| Matthias Andreas Benkard | 8c9b613 | 2024-03-06 12:51:33 +0100 | [diff] [blame] | 490 | - name: etc |
| 491 | subPath: passwd |
| 492 | mountPath: /etc/passwd |