Azure / acr-builder

Azure Container Registry Build Runner
MIT License
38 stars 35 forks source link

build step doesn't honor env #405

Closed northtyphoon closed 5 years ago

northtyphoon commented 5 years ago

Is this a BUG REPORT or FEATURE REQUEST?: BUG

What happened?:

I want to enable buildkit in build step.

steps:
  - build: .
    env: ["DOCKER_BUILDKIT=1"]

cmd step works fine

steps:
  - cmd: docker build .
    env: ["DOCKER_BUILDKIT=1"]

It looks the env is not passed to build step. https://github.com/Azure/acr-builder/blob/33002dd5102524df5b912e9ed15878d5e6cd4e7d/builder/builder.go#L239