From c6149ac3e73a22c61abace526902254b2d155bb4 Mon Sep 17 00:00:00 2001 From: Christoph Califice Date: Fri, 22 Aug 2025 17:05:44 -0300 Subject: [PATCH] gitea runner --- .gitea/workflows/demo.yaml | 19 +++++++++++++++++++ .gitignore | 3 ++- caddy/Caddyfile | 3 +++ gitea/docker-compose.yml | 15 +++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/demo.yaml diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml new file mode 100644 index 0000000..c537cc6 --- /dev/null +++ b/.gitea/workflows/demo.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.gitignore b/.gitignore index 24823d6..e404e02 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ !filebrowser/branding/** !.gitignore !monitoring/grafana/prometheus.yml -!caddy/config/** \ No newline at end of file +!caddy/config/** +!.gitea/** \ No newline at end of file diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 30fc3eb..c71472f 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -42,6 +42,9 @@ @pdf host pdf.ccalifice.com reverse_proxy @pdf http://192.168.1.202:8585 + @loki host loki.ccalifice.com + reverse_proxy @loki http://192.168.1.202:3100 + # @ariang host ariang.ccalifice.com # reverse_proxy @ariang http://192.168.1.202:6880 } diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index 83631dc..aed0674 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -38,3 +38,18 @@ services: - gitea volumes: - ./postgres:/var/lib/postgresql/data + + runner: + image: docker.io/gitea/act_runner:nightly + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: http://gitea:3000 + GITEA_RUNNER_REGISTRATION_TOKEN: "JjKRS66pgttENtYVVmhnT3TpfjVMfH7mIdEY19R3" + GITEA_RUNNER_NAME: "services-runner" + GITEA_RUNNER_LABELS: "${RUNNER_LABELS}" + volumes: + - ./runner/config.yaml:/config.yaml + - ./runner/data:/data + - /var/run/docker.sock:/var/run/docker.sock + networks: + - gitea