version-update

作者: openshift

在所有必要檔案中更新 OLS 版本號。用於發布時提升版本,或當使用者要求更新、提升、變更…

npx skills add https://github.com/openshift/lightspeed-service --skill version-update

Version Update

Update the version in three files. They must all match.

Files to update

1. ols/version.py — source of truth

__version__ = "X.Y.Z"

2. docs/openapi.json — OpenAPI spec

"info": {
    "version": "X.Y.Z"
}

3. scripts/build-container.sh — container build (note the v prefix)

OLS_VERSION=vX.Y.Z

Checklist

  • ols/version.py updated
  • docs/openapi.json updated
  • scripts/build-container.sh updated with v prefix
  • All three versions match
  • Regenerate OpenAPI docs if needed after version change