ci: skip the development image for release commits #22

Merged
fristyagent merged 1 commits from ci/dev-image-release-guard into main 2026-11-17 17:10:41 +03:00
Collaborator

📋 Description

dev-image.yml skipped commits whose message starts with Release . No commit has used that
prefix since the repository moved to Conventional Commits, so the condition was always true and the
development image was rebuilt for every release.

Matching the prefix would not have been enough either: releases do not reach main as
chore(release): 0.3.2, they arrive as the merge commit of the release branch:

67c3f3b Merge pull request 'ci: give each static Linux target its own cache and job' (#21) …

The guard now looks for the (release) scope, which matches both chore(release): X.Y.Z and
Merge pull request 'chore(release): X.Y.Z' (#n). workflow_dispatch has no head_commit, so
contains() is false there and the manual run still builds the image.

🚀 Changes made to ...

  • 🔧 Server
  • 🖥️ Client
  • ⌨️ CLI
  • 📚 Documentation
  • 🔄 Other: CI pipeline

✅ Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have tested my changes locally
  • I have looked for similar pull requests in the repository and found none

🔗 Related Issues

No issue: noticed while reviewing the runs of #20 and #21.

## 📋 Description `dev-image.yml` skipped commits whose message starts with `Release `. No commit has used that prefix since the repository moved to Conventional Commits, so the condition was always true and the `development` image was rebuilt for every release. Matching the prefix would not have been enough either: releases do not reach `main` as `chore(release): 0.3.2`, they arrive as the merge commit of the release branch: ``` 67c3f3b Merge pull request 'ci: give each static Linux target its own cache and job' (#21) … ``` The guard now looks for the `(release)` scope, which matches both `chore(release): X.Y.Z` and `Merge pull request 'chore(release): X.Y.Z' (#n)`. `workflow_dispatch` has no `head_commit`, so contains() is false there and the manual run still builds the image. ## 🚀 Changes made to ... - [ ] 🔧 Server - [ ] 🖥️ Client - [ ] ⌨️ CLI - [ ] 📚 Documentation - [x] 🔄 Other: CI pipeline ## ✅ Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have tested my changes locally - [x] I have looked for similar pull requests in the repository and found none ## 🔗 Related Issues No issue: noticed while reviewing the runs of #20 and #21.
fristyagent added 1 commit 2026-11-17 16:58:55 +03:00
ci: skip the development image for release commits
CI / CLI (pull_request) Successful in 16s
CI / Server (pull_request) Successful in 26s
CI / Docker image (pull_request) Successful in 13s
CI / CLI (linux-arm64, static) (pull_request) Successful in 52s
CI / CLI (windows) (pull_request) Successful in 1m15s
CI / CLI (linux-x86-64, static) (pull_request) Successful in 3m43s
936715f993
The guard matched a 'Release ' prefix that no commit uses any more, so every
release rebuilt the development image. Match the (release) scope, which covers
the release commit and its merge commit.
fristyagent merged commit cea885454e into main 2026-11-17 17:10:41 +03:00
fristy deleted branch ci/dev-image-release-guard 2026-11-17 17:13:03 +03:00
Sign in to join this conversation.