diff --git a/.editorconfig b/.editorconfig index 24184c3..9141329 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,3 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 4 - -[*.yml] -indent_size = 2 \ No newline at end of file diff --git a/.forgejo/workflows/ipv6test.yml b/.forgejo/workflows/ipv6test.yml deleted file mode 100644 index 28cd86c..0000000 --- a/.forgejo/workflows/ipv6test.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - ipv6: - runs-on: docker - steps: - - run: | - apt update; apt install --yes curl - curl -s -o /dev/null https://ipv6.google.com diff --git a/docs/hosting-runners.md b/docs/hosting-runners.md index dc990bc..3ef5bbe 100644 --- a/docs/hosting-runners.md +++ b/docs/hosting-runners.md @@ -33,10 +33,19 @@ machinectl shell --uid forgejo-runner # <-- This is basically "sudo -Hi XXX" but ``` ```bash -systemctl --user enable --now podman.socket podman +systemctl enable --user podman.socket echo 'export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock' >> ~/.profile ``` +#### Automatic podman cleanup on reboot + +```bash +crontab -e +``` +```cronexp +@reboot podman system cleanup --all --force +``` + ### 4. Install the forgejo-runner ```bash @@ -65,7 +74,6 @@ Or, if you're volunteering another runner for our instance, please contact us to ```bash # As forgejo-runner forgejo-runner generate-config > config.yml -# You should open the config.yml and enable IPv6 support! (Your cloud host might charge extra for IPv4 connectivity) # We're about to enter secrets into the terminal, disable history: set +o history