1
0
Fork
You've already forked forgejo-workflows-test
0
docker-compose config for testing .forgejo/workflows
2025年03月24日 15:11:10 +10:00
.gitignore Test compose files 2025年03月24日 15:11:10 +10:00
compose-forgejo-and-runner.yml Test compose files 2025年03月24日 15:11:10 +10:00
compose-push-workflow.yml Test compose files 2025年03月24日 15:11:10 +10:00
LICENSE Initial commit 2025年03月20日 01:44:55 +00:00
README.md Test compose files 2025年03月24日 15:11:10 +10:00

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/actions to inspect.
  • If your uses: actions/xxx cannot install on node-bookworm, set runs-on: catthehacker.