docker / docker/buildx

Allow `.env` file override (equivalent to docker-compose build's `--env-file` option) when using bake

Open
#1,135 2 comments 3 reactions 1 assignee View on GitHub

@crazy-max is already working on this.

Since Jun 11, 2024.

area/bake area/bake/compose status/needs-maintainer-decision
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

As a follow up to #282

Depending on our build type (dev/ci/prod) we use different versions of a .env file when running our builds with docker-compose build. Would it be possible to add a --env-file option to bake so it can provide the same functionality?

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.