Routine that run periodically and setup settings in Woodpecker CI.
  • Go 92.7%
  • Dockerfile 7.3%
Find a file
renovate-bot 7d27001bbb
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
Update module code.thinkaboutit.tech/pandora/woodpecker-utils.gopack to v1.2.0 #6
Merged automatically
2026-04-18 07:13:41 +00:00
.gitignore Initial commit 2026-04-09 12:10:00 +00:00
.goreleaser.yaml Initial commit 2026-04-09 12:10:00 +00:00
.markdownlint.json Initial commit 2026-04-09 12:10:00 +00:00
.prettierrc Initial commit 2026-04-09 12:10:00 +00:00
.test.env initialial commit 2026-04-09 16:20:35 +02:00
Containerfile fix Containerfile 2026-04-09 16:25:10 +02:00
go.mod Update module code.thinkaboutit.tech/pandora/woodpecker-utils.gopack to v1.2.0 #6 2026-04-18 07:13:41 +00:00
go.sum Update module code.thinkaboutit.tech/pandora/woodpecker-utils.gopack to v1.2.0 #6 2026-04-18 07:13:41 +00:00
LICENSE add license 2026-04-11 13:49:40 +02:00
main.go Add default for woodpecker host (#1) 2026-04-09 17:39:11 +00:00
README.md Add default for woodpecker host (#1) 2026-04-09 17:39:11 +00:00
renovate.json Initial commit 2026-04-09 12:10:00 +00:00

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