MapColonies / MapColonies/shared-workflows

Proposal: add build args to docker-build action

Open
#85 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the docker-build action definition and the docker build command it invokes. Add the optional build-args input with the proposed ENV=production format, forward each argument as --build-arg, and verify that builds without the input still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.