MapColonies / MapColonies/shared-workflows

Proposal: add build args to docker-build action

未关闭
#85 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
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.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。