No description
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| resources | ||
| .env-tmpl | ||
| .gitignore | ||
| compose.yaml | ||
| README.md | ||
Workflow Tester
Setup
Start with:
podman compose up -d
Inital setup
-
Create a runner secret with:
openssl rand -hex 20 -
Generate the runner UUID from the secret:
echo -n 'RUNNER_SECRET' | python -c 'import sys; import uuid;input=sys.stdin.read();print(str(uuid.UUID(bytes=input[:16].encode("utf-8"))))' -
Copy the
runner-config-tmpl.ymland.env-tmpland replaceRUNNER_UUIDandRUNNER_SECERTwith the generated credentialscp .env-tmpl .env cd resources/runner && cp runner-config-tmpl.yml runner-config.yml -
Start with:
podman compose up -d -
Connect to the forgejo container shell via
podman exec -it forgejo bashor podman-desktop and executecd /tmp/ bash setup.sh -
This configures the runner and creates an admin user with
username=testandpassword=testpassand creates a keypair in /resources/keys. -
Copy the ssh key to
~/.sshcp resources/keys/workflow-tester ~/.ssh/ -
Add
# local repo Host localhost PreferredAuthentications publickey IdentityFile ~/.ssh/workflow-testerto
~/.ssh/config -
Push test repo with workflow to server
git remote add origin ssh://git@localhost:2222/test/mock.git git push -u origin main