runner
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s

This commit is contained in:
Бевзенко Владимир Андреевич
2026-06-16 03:31:47 +03:00
parent 4662d34013
commit 85bd65ab59
2 changed files with 37 additions and 2 deletions
+19
View File
@@ -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 }}."
+18 -2
View File
@@ -73,12 +73,25 @@ services:
image: 'docker.gitea.com/gitea:1.26.2' image: 'docker.gitea.com/gitea:1.26.2'
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/gitea:/data - ./data/gitea/gitea:/data
environment: environment:
GITEA__service__DISABLE_REGISTRATION: true GITEA__service__DISABLE_REGISTRATION: true
GITEA__other__SHOW_FOOTER_VERSION: false GITEA__other__SHOW_FOOTER_VERSION: false
GITEA__other__SHOW_FOOTER_POWERED_BY: 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: networks:
default: default:
name: vbevdev name: vbevdev
@@ -89,4 +102,7 @@ secrets:
beszel_agent_key: beszel_agent_key:
file: secrets/beszel_agent_key.txt file: secrets/beszel_agent_key.txt
beszel_agent_token: beszel_agent_token:
file: secrets/beszel_agent_token.txt file: secrets/beszel_agent_token.txt
gitea_runner_registration_token:
file: secrets/gitea_runner_registration_token.txt