Skip to content

Proposal: add build args to docker-build action #85

Description

@NivGreenstein

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions