generated from pandora/woodpecker-plugin.template
Routine that run periodically and setup settings in Woodpecker CI.
- Go 92.7%
- Dockerfile 7.3%
|
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/cron/vulnerability Pipeline was successful
ci/woodpecker/cron/renovate Pipeline was successful
ci/woodpecker/cron/auto_merge Pipeline was successful
ci/woodpecker/cron/wp_setup Pipeline was successful
Merged automatically |
||
|---|---|---|
| .gitignore | ||
| .goreleaser.yaml | ||
| .markdownlint.json | ||
| .prettierrc | ||
| .test.env | ||
| Containerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| renovate.json | ||
Woodpecker configurator
This plugin list all repositories under the owner. If repository is not enabled in Woodpecker, it activates it.
Plugin also check the cron jobs for the repository and create mandatory jobs if not exists. If they exists but setup to run at round minute, reschedule it for a random minute, so all cron job will not run at same time.
The job templates:
jobTemplates := map[string]string{
"vulnerability": "%d 1 * * *",
"patch_daily": "%d 2 * * *",
"auto_merge": "%d 7 * * *",
}
Usage
It can be used at manual or cron event.
steps:
- name: Configure Woodpecker CI
image: code.thinkaboutit.tech/pandora/woodpecker.setup
settings:
woodpecker_token:
from_secret: woodpecker-token
forgejo_token:
from_secret: forgejo-token
Settings
| Name | Default value | Description |
|---|---|---|
| woodpecker_token | API token for Woodpecker CI | |
| woodpecker_host | CI_SYSTEM_URL | URL of the Woodpecker CI |
| forgejo_token | Access token for Forgejo, needs read:repository,read:org |
|
| forgejo_host | CI_FORGE_URL | URL of the Forgejo |
| forgejo_owner | CI_REPO_OWNER | Repositories listed under this owner |