forgejo actions
This commit is contained in:
parent
fcb216cfba
commit
dce2f3d251
4 changed files with 51 additions and 4 deletions
|
@ -1,7 +1,3 @@
|
|||
# Configs
|
||||
|
||||
- [Woodpecker](https://woodpecker-ci.org/): `docker-compose/woodpecker.yml`
|
||||
|
||||
# Usage
|
||||
|
||||
- Instead of copy and pasting stuff, link it!
|
||||
|
|
0
docker-compose/forgejo_actions.yaml
Normal file
0
docker-compose/forgejo_actions.yaml
Normal file
27
forgejo/runner/docker-compose.yaml
Normal file
27
forgejo/runner/docker-compose.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
docker-in-docker:
|
||||
image: docker:dind
|
||||
container_name: 'docker_dind'
|
||||
privileged: 'true'
|
||||
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
||||
restart: 'unless-stopped'
|
||||
|
||||
gitea:
|
||||
image: 'code.forgejo.org/forgejo/runner:3.4.1'
|
||||
links:
|
||||
- docker-in-docker
|
||||
depends_on:
|
||||
docker-in-docker:
|
||||
condition: service_started
|
||||
container_name: 'runner'
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||
# User without root privileges, but with access to `./data`.
|
||||
user: forgejo-runner:forgejo-runner
|
||||
volumes:
|
||||
- /home/forgejo-runner/data:/data
|
||||
restart: 'unless-stopped'
|
||||
|
||||
command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'
|
24
forgejo/runner/readme.md
Normal file
24
forgejo/runner/readme.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Forgejo runner
|
||||
|
||||
https://forgejo.org/docs/next/admin/actions/
|
||||
|
||||
## Prep
|
||||
|
||||
Make user: `forgejo-runner`
|
||||
|
||||
Make data directory within `/home/forgejo-runner`
|
||||
|
||||
```bash
|
||||
set -e
|
||||
|
||||
mkdir -p data
|
||||
touch data/.runner
|
||||
mkdir -p data/.cache
|
||||
|
||||
chown -R 1001:1001 data/.runner
|
||||
chown -R 1001:1001 data/.cache
|
||||
chmod 775 data/.runner
|
||||
chmod 775 data/.cache
|
||||
chmod g+s data/.runner
|
||||
chmod g+s data/.cache
|
||||
```
|
Loading…
Reference in a new issue