homelab
- 18 commits
- 1 branch
- 0 tags
- updated
- CI 1/1
feat: updated gitea/runner, and ci
Verifiedsigned by Daniel Daum with SSH key SHA256:drhIqfmUzuijEg5lpF1wfHhbG2Z4ebL9Lf+nLCJWAfg
- Mirror / mirror (push)Successful in 10s
Showing 4 changed files with 59 additions and 4 deletions.
.gitea/workflows/mirror.yamladded
+44 −0
@@ -0,0 +1,44 @@1# mirrors main to github and tangled on every push. gitea is the source of2# truth, so both get force-pushed to match it. the same file works in every3# repo: it pushes to the repo with the same name on github and tangled.4# needs the GH_MIRROR_TOKEN and TANGLED_MIRROR_KEY secrets, and the5# TANGLED_KNOWN_HOSTS variable (ssh-keyscan tangled.org, checked once)6name: Mirror78on:9 push:10 branches:11 - main12 workflow_dispatch:1314jobs:15 mirror:16 runs-on: ubuntu-latest17 env:18 REPO: ${{ github.event.repository.name }}19 steps:20 # full history, and origin/main is the newest main, so a late or21 # retried run never rolls the mirrors back22 - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.023 with:24 fetch-depth: 02526 - name: Mirror to GitHub27 env:28 TOKEN: ${{ secrets.GH_MIRROR_TOKEN }}29 run: |30 set -euo pipefail31 git push --force "https://x-access-token:${TOKEN}@github.com/daniel-daum/${REPO}.git" refs/remotes/origin/main:refs/heads/main3233 - name: Mirror to Tangled34 env:35 KEY: ${{ secrets.TANGLED_MIRROR_KEY }}36 KNOWN_HOSTS: ${{ vars.TANGLED_KNOWN_HOSTS }}37 run: |38 set -euo pipefail39 mkdir -p ~/.ssh40 printf '%s\n' "$KEY" > ~/.ssh/tangled41 chmod 600 ~/.ssh/tangled42 printf '%s\n' "$KNOWN_HOSTS" > ~/.ssh/known_hosts43 export GIT_SSH_COMMAND="ssh -i ~/.ssh/tangled -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes"44 git push --force "daum.dev@tangled.org:daum.dev/${REPO}" refs/remotes/origin/main:refs/heads/main
gitea/docker-compose.yaml
+9 −3
@@ -1,6 +1,6 @@11services:22 gitea:3 image: gitea/gitea:28.2.0@sha256:30777c91280d973fa02be48b1ade735bd6859e8f6f7af3b4444d5194378525043 image: gitea/gitea:28.4.0@sha256:aa90e8f00b755b0d665214ab9c14447ea44d3190dbe6b6d0cb46cd9c4f55d30944 container_name: gitea55 restart: unless-stopped66 security_opt:@@ -69,10 +69,16 @@ services:6969 # security and webhooks7070 - GITEA__security__EGRESS_MODE7171 - GITEA__security__ALLOWED_HOST_LIST72 # commit signing73 - GITEA__repository_0X2E_signing__SIGNING_KEY74 - GITEA__repository_0X2E_signing__SIGNING_FORMAT75 - GITEA__repository_0X2E_signing__SIGNING_NAME76 - GITEA__repository_0X2E_signing__SIGNING_EMAIL77 - GITEA__repository_0X2E_signing__MERGES727873797480 gitea-runner:75 image: gitea/runner:5.2.0@sha256:f4db24cc5f682483ffd01b8de6a6c6d15e6fd9320a0ce27fd18d4398db421eae81 image: gitea/runner:6.0.1@sha256:102bbed0b454b92725845b7abeebd0a6f31d10a91a869fb5207871b0eb7d47787682 container_name: gitea-runner7783 restart: unless-stopped7884 depends_on:@@ -86,7 +92,7 @@ services:8692 environment:8793 GITEA_INSTANCE_URL: http://gitea:30008894 GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}89 GITEA_RUNNER_NAME: dxun95 GITEA_RUNNER_NAME: narshaddaa9096 CONFIG_FILE: /config.yaml91979298volumes:
gitea/runner-config.yaml
+5 −0
@@ -1,6 +1,9 @@11log:2 level: info2334runner:5 capacity: 2 # raise to run jobs in parallel6 timeout: 3h47 labels:58 - "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"69@@ -9,6 +12,8 @@ cache:9121013container:1114 network: holonet15 privileged: false16 valid_volumes: []12171318host:1419
showcase/docker-compose.yaml
+1 −1
@@ -1,6 +1,6 @@11services:22 showcase:3 image: code.aardvark-halibut.ts.net/daniel/showcase@sha256:e5d3d45006795cbf34f6e43780803f76731a3d1d2b31a8ea7bb333c719399e163 image: code.aardvark-halibut.ts.net/daniel/showcase:latest44 container_name: showcase55 restart: unless-stopped66 ports: