MapColonies / MapColonies/shared-workflows

Proposal: add build args to docker-build action

オープン
#85 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

docker-build アクションの定義と、それが呼び出す 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 を短くまとめたダイジェスト。