Skip to content

feat: Add dev branch support for GitHub Actions workflow#2

Closed
Stlara-F wants to merge 1 commit into
SnowLuma:mainfrom
Stlara-F:feature/add-dev-branch-support
Closed

feat: Add dev branch support for GitHub Actions workflow#2
Stlara-F wants to merge 1 commit into
SnowLuma:mainfrom
Stlara-F:feature/add-dev-branch-support

Conversation

@Stlara-F
Copy link
Copy Markdown

修改概要 Summary

增加了对 SnowLuma 仓库 dev 分支的 GitHub Actions 自动化构建和推送支持。

主要修改 Changes

1. 工作流文件 (.github/workflows/docker-image.yml)

  • ✅ 新增 snowluma_branch 输入参数,允许指定源分支(如 devmain
  • ✅ 修复环境变量初始化 bug:原来的三元运算符导致 snowluma_branch 参数无法生效
  • ✅ 分离环境变量为 SNOWLUMA_TAG、SNOWLUMA_BRANCH、DEFAULT_TAG 三个独立变量
  • ✅ 实现清晰的优先级逻辑:snowluma_tag > snowluma_branch > tag

2. 文档文件 (README.md)

  • ✅ 添加分支选择的使用说明
  • ✅ 说明了 release tag 和 source branch 的区别及优先级关系

功能说明 Features

支持三种方式指定构建版本:

  1. 指定 Release Tag(优先级最高):snowluma_tag=v1.6.35snowluma_tag=dev
  2. 指定 Source 分支(优先级中):snowluma_branch=mainsnowluma_branch=dev
  3. 使用 Docker 镜像 tag(优先级最低):tag=latesttag=dev

向后兼容性 Backward Compatibility

✅ 保持完全向后兼容 - 现有的基于 tag 的工作流不受影响

提交者:AI Assistant

- Added snowluma_branch input parameter to allow building from source branches
- Fixed environment variable initialization bug that prevented branch parameter from working
- Implemented explicit priority logic: snowluma_tag > snowluma_branch > tag
- Updated documentation with branch selection examples
- Maintained backward compatibility with existing tag-based builds

Fixes branch selection logic to properly handle multiple reference options.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef5ce0f18a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/docker-image.yml
@Stlara-F Stlara-F marked this pull request as draft May 19, 2026 17:53
@Stlara-F Stlara-F closed this May 19, 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