Skip to content

feat: extract reusable workflows + actions automerge in preset#12

Merged
roleme merged 2 commits into
mainfrom
feat/extract-shared-workflows
Jun 25, 2026
Merged

feat: extract reusable workflows + actions automerge in preset#12
roleme merged 2 commits into
mainfrom
feat/extract-shared-workflows

Conversation

@roleme

@roleme roleme commented Jun 25, 2026

Copy link
Copy Markdown
Owner

What & why

Step 1 of unifying the four active repos (asia-trip-bot, kurwa_bot, docker_infra, training_tracker) around shared config. This extracts the workflows that are currently copy-pasted (or missing) so each repo calls them instead.

New reusable workflows

  • zizmor-reusable.yml — Actions security scan (workflow_call). Today an identical copy lives in asia-trip-bot and kurwa_bot, and is absent from docker_infra / training_tracker.
  • validate-renovate-reusable.ymlrenovate.json schema validation (config-file input, default renovate.json). Today only docker_infra validates its Renovate config; all four ship one.
  • docker-publish-reusable.yml — GHCR build/push + instant Komodo deploy, for the bots. Inputs: image, komodo-stack, komodo-host (default komo.domovas.uk), context. asia-trip-bot and kurwa_bot are byte-identical apart from image name and stack name.

Preset change

  • Added a packageRules entry that auto-merges github-actions patch/minor updates. Every consuming repo inherits Renovate automerge for actions with no local rule needed; the 10-day minimumReleaseAge still gates the merge. Dependabot stays as the github-actions backup (with its existing auto-merge).

Follow-ups (separate PRs, per repo)

  • asia-trip-bot / kurwa_bot: call all three reusables; add Dependabot (github-actions only).
  • docker_infra: call zizmor + validate-renovate reusables; drop the duplicate n8n pg-backup Renovate rule.
  • training_tracker: drop the npm ecosystem from Dependabot (it competes with Renovate); add zizmor + validate-renovate.

Validation

  • renovate-config-validator passes on the updated preset.
  • All three workflow YAMLs parse.

🤖 Generated with Claude Code

roleme and others added 2 commits June 25, 2026 18:12
Extract three shared CI workflows so the four active repos (asia-trip-bot,
kurwa_bot, docker_infra, training_tracker) call them instead of copy-pasting:

- zizmor-reusable.yml: Actions security scan (workflow_call)
- validate-renovate-reusable.yml: renovate.json schema validation (config-file input)
- docker-publish-reusable.yml: GHCR build/push + Komodo deploy for the bots
  (image / komodo-stack / komodo-host / context inputs)

Also add a packageRules entry to the shared Renovate preset that auto-merges
github-actions patch/minor updates, so every consuming repo inherits Renovate
automerge for actions without a local rule (Dependabot stays as the backup).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- dependabot-auto-merge.yml: pin actions/setup-node to the v6 SHA
  (zizmor unpinned-uses error; matches other repos' pin).
- docker-publish-reusable.yml: komodo-host is now a required input with
  no default. This repo is public, so the previous default leaked an
  internal infra hostname; callers (private repos) supply their own host.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@roleme roleme merged commit fd888e6 into main Jun 25, 2026
1 check passed
@roleme roleme deleted the feat/extract-shared-workflows branch June 25, 2026 16:23
@roleme roleme mentioned this pull request Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant