ci: extract hardcoded registry URL from all Woodpecker pipelines #133

Closed
opened 2026-03-23 23:41:17 +00:00 by kert · 0 comments
Owner

Problem

gitea.homelab.fhirworx.io appears in deploy.yml (12 times), harden.yml (11 times), rebuild-all.yml (13 times) as:

  • YAML registry: settings
  • buildkit_config blocks
  • Trivy scan image references
  • Deploy pull/tag commands

Fix

Woodpecker supports from_secret for settings. Add a registry_host secret (or derive from DOMAIN) and use it everywhere:

variables:
  - &buildx_base
    registry:
      from_secret: registry_host

For buildkit_config and Trivy commands that need string interpolation, use a prep step that reads the secret into an env var.

Files

  • .woodpecker/deploy.yml
  • .woodpecker/harden.yml
  • .woodpecker/rebuild-all.yml
## Problem `gitea.homelab.fhirworx.io` appears in `deploy.yml` (12 times), `harden.yml` (11 times), `rebuild-all.yml` (13 times) as: - YAML `registry:` settings - `buildkit_config` blocks - Trivy scan image references - Deploy pull/tag commands ## Fix Woodpecker supports `from_secret` for settings. Add a `registry_host` secret (or derive from `DOMAIN`) and use it everywhere: ```yaml variables: - &buildx_base registry: from_secret: registry_host ``` For `buildkit_config` and Trivy commands that need string interpolation, use a prep step that reads the secret into an env var. ## Files - `.woodpecker/deploy.yml` - `.woodpecker/harden.yml` - `.woodpecker/rebuild-all.yml`
kert added this to the P18: Config Consolidation — eliminate hardcoded values milestone 2026-03-23 23:41:17 +00:00
kert added the ci label 2026-03-23 23:41:17 +00:00
kert closed this issue 2026-03-23 23:51:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#133