Skip to content

chore(release): trigger pinakes-docker image rebuild on stable release#189

Merged
fabiodalez-dev merged 1 commit into
mainfrom
chore/docker-release-dispatch
Jun 23, 2026
Merged

chore(release): trigger pinakes-docker image rebuild on stable release#189
fabiodalez-dev merged 1 commit into
mainfrom
chore/docker-release-dispatch

Conversation

@fabiodalez-dev

@fabiodalez-dev fabiodalez-dev commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Adds a non-fatal hook at the end of scripts/create-release.sh that, after a stable release is published, fires a repository_dispatch (event pinakes_release, payload pinakes_version) to the new fabiodalez-dev/pinakes-docker repo so it rebuilds and republishes the multi-arch Docker image for that version.

  • Guarded to stable releases only (skipped for RC prereleases).
  • Non-fatal: if gh dispatch fails, it prints the manual command and the release still succeeds. The Docker repo also runs a daily poller as a safety net.
  • No app/runtime impact — create-release.sh is a dev-only tool, excluded from the release ZIP.

Summary by CodeRabbit

Release Notes

  • New Features
    • Il processo di rilascio ora attiva automaticamente la ricostruzione dell'immagine per i rilasci stabili, garantendo che le nuove versioni siano immediatamente disponibili.

After publishing a stable release, fire a repository_dispatch to
fabiodalez-dev/pinakes-docker so it rebuilds and republishes the Docker image
for the new version. Guarded to stable releases, non-fatal (the Docker repo
also polls daily as a safety net).
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b934a814-59d3-4578-84bf-c2597035863b

📥 Commits

Reviewing files that changed from the base of the PR and between cb7f21d and 22756f9.

📒 Files selected for processing (1)
  • scripts/create-release.sh

📝 Walkthrough

Walkthrough

In scripts/create-release.sh, dopo la pubblicazione di una release, viene aggiunto un blocco che, solo per release stabili (non pre-release), invia un repository dispatch event (pinakes_release) al repository fabiodalez-dev/pinakes-docker tramite gh api. Il fallimento è non fatale: viene stampato un avviso e il comando manuale equivalente.

Changes

Docker rebuild trigger post-release

Layer / File(s) Summary
Dispatch Docker rebuild su release stabile
scripts/create-release.sh
Aggiunge un blocco condizionale (righe 534–553) eseguito solo quando prerelease=false e gh è disponibile. Invia event_type=pinakes_release con client_payload[pinakes_version] al repo fabiodalez-dev/pinakes-docker. In caso di errore, stampa un warning e il comando gh workflow run manuale senza interrompere il flusso.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Il titolo corrisponde direttamente al cambiamento principale: aggiunge un hook per attivare la ricostruzione dell'immagine Docker al rilascio di versioni stabili.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/docker-release-dispatch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fabiodalez-dev fabiodalez-dev merged commit 53312e1 into main Jun 23, 2026
6 checks passed
@fabiodalez-dev fabiodalez-dev deleted the chore/docker-release-dispatch branch June 23, 2026 21:19
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