1
1

Add in a demo Gitea runner task
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / build-site (push) Successful in 2s

This commit is contained in:
2026-01-03 02:54:10 -05:00
parent d3811f8c55
commit adf3c1050c
2 changed files with 60 additions and 27 deletions

View File

@@ -0,0 +1,28 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: debian-latest
container:
image: "node:23"
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 }}."
build-site:
runs-on: debian-latest
container:
image: "node:23"
steps:
- name: checkout-code
uses: https://data.forgejo.org/actions/checkout@v4

View File

@@ -1,46 +1,49 @@
{ pkgs, ... }: { pkgs, ... }:
let baseUrl = "git.ewanick.com"; let
baseUrl = "git.ewanick.com";
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/git.ewanick.com";
in in
{ {
services.gitea = { services.gitea = {
enable = true; enable = true;
appName = "Bill's Gitea server, hosted on Linode using NixOS"; appName = "Bill's Gitea server, hosted on Linode using NixOS";
lfs.enable = true;
settings = { settings = {
server = { server = {
DOMAIN = baseUrl; DOMAIN = baseUrl;
ROOT_URL = "https://${baseUrl}/"; ROOT_URL = "https://${baseUrl}/";
HTTP_PORT = 3000; HTTP_PORT = 3000;
}; };
service = { service.DISABLE_REGISTRATION = true;
DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
}; };
# actions = {
# ENABLED = true;
# DEFAULT_ACTIONS_URL = "self";
# };
}; };
}; };
# services.gitea-actions-runner.instances = { services.gitea-actions-runner = {
# "first-runner" = { instances.default = {
# enable = true; enable = true;
# url = baseUrl; name = "linode-nixos";
# tokenFile = ./git.ewanick.com/tokenFile; url = "https://${baseUrl}/";
# hostPackages = with pkgs; [ tokenFile = "${PROJECT_ROOT}/tokenFile";
# bash hostPackages = with pkgs; [
# coreutils bash
# curl coreutils
# gawk curl
# gitMinimal gawk
# gnused gitMinimal
# wget gnused
# ]; wget
# name = "linode-nixos"; ];
# labels = [ labels = [
# "native:host" "debian-latest:docker://node:23-bookworm"
# ]; "native:host"
# }; ];
# }; };
};
services.caddy = { services.caddy = {
enable = true; enable = true;
@@ -52,6 +55,8 @@ in
}; };
}; };
}; };
virtualisation.docker.enable = true;
} }