Warning
This guide is a work in progress and may not be complete.
This is a basic contributing guide and is a work in progress.
- Fork the repository.
- Create a branch in your fork!
- Make your changes.
- Test your changes.
- Commit and push your changes.
- Create a PR to this repository.
- Verify the tests pass, otherwise resolve.
- Make sure to keep your branch up-to-date.
GitHub is easier to set up, but you have to push your commits to test.
Running locally is harder to set up, but it is much easier to test; and by far recommended!
You will need to add your CLOUDFLARE_API_TOKEN to the GitHub Action Secrets.
You also need to add your zone to the ZONES GitHub Action Variables.
When you push your branch to your repository, the test.yaml should run...
To run actions locally you need to install act: https://nektosact.com/installation/index.html
- Create a
.secretsfile with:CLOUDFLARE_API_TOKEN="xxx" - Run:
act -j test --env ZONES=example.com(with your ZONES)
The test updates the action.yaml to use the Dockerfile. This ensures the test will always use your local changes.
To test the docker image, run: build.sh --env ZONES=example.com
To see all available jobs run: act -l