Skip to content

Instantly share code, notes, and snippets.

View oNaiPs's full-sized avatar
🏗️

José Luis Pereira oNaiPs

🏗️
View GitHub Profile
@oNaiPs
oNaiPs / lxc_create_github_actions_runner.sh
Last active November 26, 2025 00:18
Create LXC container as self-hosted github actions runner
#!/usr/bin/env bash
set -e
GITHUB_RUNNER_URL="https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-x64-2.311.0.tar.gz"
TEMPL_URL="http://download.proxmox.com/images/system/ubuntu-23.04-standard_23.04-1_amd64.tar.zst"
PCTSIZE="20G"
if [ -z "$GITHUB_TOKEN" ]; then
read -p "Enter github token: " GITHUB_TOKEN