From 85bd65ab59e9f94260c824e1c369b8b6576ced05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B5=D0=B2=D0=B7=D0=B5=D0=BD=D0=BA=D0=BE=20=D0=92?= =?UTF-8?q?=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Tue, 16 Jun 2026 03:31:47 +0300 Subject: [PATCH 1/4] runner --- .gitea/workflows/demo.yaml | 19 +++++++++++++++++++ docker-compose.yml | 20 ++++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) 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..394c807 --- /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 }}." \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 6b5e7e8..b00443d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,12 +73,25 @@ services: image: 'docker.gitea.com/gitea:1.26.2' restart: unless-stopped volumes: - - ./data/gitea:/data + - ./data/gitea/gitea:/data environment: GITEA__service__DISABLE_REGISTRATION: true GITEA__other__SHOW_FOOTER_VERSION: false GITEA__other__SHOW_FOOTER_POWERED_BY: false + git-runner: + image: 'gitea/act_runner:latest' + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: "${GITEA_URL}" + GITEA_RUNNER_REGISTRATION_TOKEN_FILE: /run/secrets/gitea_runner_registration_token + volumes: + - ./data/gitea/runner/config.yaml:/config.yaml + - ./data/gitea/runner/data:/data + - /var/run/docker.sock:/var/run/docker.sock + secrets: + - gitea_runner_registration_token + networks: default: name: vbevdev @@ -89,4 +102,7 @@ secrets: beszel_agent_key: file: secrets/beszel_agent_key.txt beszel_agent_token: - file: secrets/beszel_agent_token.txt \ No newline at end of file + file: secrets/beszel_agent_token.txt + gitea_runner_registration_token: + file: secrets/gitea_runner_registration_token.txt + \ No newline at end of file From 1463b4b78f6f70cd653aa6ee1e5ba4309ffc5dd2 Mon Sep 17 00:00:00 2001 From: vbevdev Date: Tue, 16 Jun 2026 05:37:54 +0300 Subject: [PATCH 2/4] up runner after git healthy --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b00443d..0682072 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,9 +78,17 @@ services: GITEA__service__DISABLE_REGISTRATION: true GITEA__other__SHOW_FOOTER_VERSION: false GITEA__other__SHOW_FOOTER_POWERED_BY: false + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"] + interval: 10s + timeout: 5s + retries: 3 git-runner: image: 'gitea/act_runner:latest' + depends_on: + git: + condition: service_healthy environment: CONFIG_FILE: /config.yaml GITEA_INSTANCE_URL: "${GITEA_URL}" From 79d6e9e1b36d862596ee49c1f84c99ba193d6126 Mon Sep 17 00:00:00 2001 From: vbevdev Date: Tue, 16 Jun 2026 05:38:24 +0300 Subject: [PATCH 3/4] deploy workflow draft --- .gitea/workflows/deploy.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..2a7b215 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Deploy +run-name: Deploy +on: workflow_dispatch + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Execute Remote SSH Commands + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_PASSWORD }} + port: 22 + script: | + cd /home/vbevdev/test + touch hello-there.txt From 807f08734abe3b4e87a39f69b12fe69b23ca65e0 Mon Sep 17 00:00:00 2001 From: vbevdev Date: Tue, 16 Jun 2026 05:44:36 +0300 Subject: [PATCH 4/4] fix deploy workflow --- .gitea/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2a7b215..73fa8fc 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,6 +1,7 @@ name: Deploy run-name: Deploy -on: workflow_dispatch +on: + workflow_dispatch: jobs: deploy: