mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-21 20:27:17 +03:00
Merge pull request 'examples/docker-compose: add Quick Start' (#91) from earl-warren/runner:wip-dind into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/91 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
commit
7b73082ea2
1 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,17 @@ launched within a container (using
|
|||
[dind](https://hub.docker.com/_/docker/tags?name=dind)) and will be
|
||||
used by the `Forgejo runner` to execute the workflows.
|
||||
|
||||
### Quick start
|
||||
|
||||
```sh
|
||||
rm -fr /srv/runner-data /srv/forgejo-data
|
||||
secret=$(openssl rand -hex 20)
|
||||
sed -i -e "s/{SHARED_SECRET}/$secret/" compose-forgejo-and-runner.yml
|
||||
docker compose -f compose-forgejo-and-runner.yml up -d
|
||||
docker compose -f compose-forgejo-and-runner.yml -f compose-demo-workflow.yml up demo-workflow
|
||||
firefox http://0.0.0.0:8080/root/test/actions/runs/1 # login root, password {ROOT_PASSWORD}
|
||||
```
|
||||
|
||||
### Running
|
||||
|
||||
Create a shared secret with:
|
||||
|
|
Loading…
Reference in a new issue