MapColonies / MapColonies/shared-workflows
Proposal: add build args to docker-build action
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently, our docker-build action does not support passing --build-arg parameters to the docker build command. This limits our ability to dynamically inject build-time variables such as environment configurations, secrets (via build-time only secrets), or versioning metadata.
Proposal:
Add support for build arguments by introducing an optional build-args input to the action. This input could accept a list or key-value pairs, which the action will forward to the docker build command using --build-arg.
Example usage:
with:
build-args: |
ENV=production
VERSION=1.2.3
This enhancement would improve flexibility and align the action with common Docker build practices.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
定位 docker-build action 的定义以及它调用的 docker build 命令。添加采用建议的 ENV=production 格式的可选 build-args 输入,将每个参数作为 --build-arg 传递,并验证不提供该输入时构建仍能正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, github-actions
- 领域
- ci-cd, devops
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100