docker-compose config for testing .forgejo/workflows
| .gitignore | Test compose files | |
| compose-forgejo-and-runner.yml | Test compose files | |
| compose-push-workflow.yml | Test compose files | |
| LICENSE | Initial commit | |
| README.md | Test compose files | |
forgejo-workflows-test
docker compose config files for testing .forgejo/workflows
A slightly modified version of
https://code.forgejo.org/forgejo/runner/src/branch/main/examples/docker-compose
that adds docker://ghcr.io/catthehacker/ubuntu:act-latest to workflow action images
in order to be able to use more github actions.
Running
In this directory:
sudo rm -rf forgejo-data/ runner-data/
export SECRET=$(openssl rand -hex 20) # can skip, default provided
export ROOT_PASSWORD=SecurePassOrNotMin8Chars # can skip, default password
docker compose -f compose-forgejo-and-runner.yml up -d # server URL: http://0.0.0.0:8080
export REPO=/path/to/repo/with-.forgejo/
docker compose -f compose-forgejo-and-runner.yml -f compose-push-workflow.yml up push-workflow # as many times as you want
Cleanup:
docker compose -f compose-forgejo-and-runner.yml -f compose-push-workflow.yml down
sudo rm -rf forgejo-data/ runner-data/
Notes
- Not sure how it fares with non-push actions.
- Cannot display action output, API deficiency, have to go to
http://0.0.0.0:8080/root/test/actionsto inspect. - If your
uses: actions/xxxcannot install onnode-bookworm, setruns-on: catthehacker.