forgejo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
forgejo [2025/03/28 07:55] – [Set up Forgerunner:] ryan | forgejo [2025/03/28 08:03] (current) – [Set up Forgerunner:] ryan | ||
---|---|---|---|
Line 5: | Line 5: | ||
====Set up Forgerunner: | ====Set up Forgerunner: | ||
- | - make a new directory | + | - Copy and paste the following |
- | services: | + | |
- | forgejo-runner: | + | |
- | hostname: forgerunner | + | |
- | image: code.forgejo.org/ | + | |
- | container_name: | + | |
- | environment: | + | |
- | DOCKER_HOST: | + | |
- | user: 0:0 #Gives permission errors if not root. Can this be fixed somehow? | + | |
- | volumes: | + | |
- | - ./ | + | |
- | - / | + | |
- | restart: unless-stopped | + | |
- | + | ||
- | command: forgejo-runner -c / | + | |
- | - save it and create a new folder in the same directory called " | + | |
Line 49: | Line 34: | ||
- Follow the prompts. Enter your forgejo url and runner token from YourRepo -> Settings -> Actions -> Runners -> Create new runner | - Follow the prompts. Enter your forgejo url and runner token from YourRepo -> Settings -> Actions -> Runners -> Create new runner | ||
+ | |||
+ | - Check the runners list in your repository. It should show up as inactive. | ||
- Navigate to your repo either in browser or locally and create a new file under .forgejo/ | - Navigate to your repo either in browser or locally and create a new file under .forgejo/ | ||
Line 80: | Line 67: | ||
Make sure to create matching secrets or adjust the variables accordingly. | Make sure to create matching secrets or adjust the variables accordingly. | ||
- | - Testing required: by commenting out the line "on: [push]" | + | - Testing required: by commenting out the line "on: [push]" |
- Under " | - Under " | ||
git pull https:// | git pull https:// | ||
| | ||
+ | Make sure your local repository is synced by pulling or pushing the changes. Now the script should automatically run on every push. |
forgejo.1743148559.txt.gz · Last modified: by ryan