Skip to content

[FEATURE]: Control path of docker config for publish #6775

@salotz

Description

@salotz

Feature Request

Background / Motivation

I am trying to run garden publish in a CI pipeline where it would be very convenient to pass the path to the docker config folder as an environment variable. In my CI system I use previous step to create the docker config.json and pass it to the garden publish task, so I have to use shell scripting to copy it to ~/.docker/config.json.

What should the user be able to do?

DOCKER_CONFIG=path/to/my/docker garden publish my-build --tag latest

Why do they want to do this? What problem does it solve?

Adds more flexibility and options to how we can configure this job. Depending on the context system some methods are easier than others. Using environment variables is usually the most easily supported.

Suggested Implementation(s)

I first tried using DOCKER_CONFIG as the documentation indicates that this is how it works.

I then understood from the logs that you are using regctl for the publish command (despite using skopeo for other tasks). So I looked in their docs to see if it was controllable by an environment variable, which it wasn't.

So either you can use a tool that supports an environment variable or create your own and map that to however that wrapped tool uses it.

How important is this feature for you/your team?

🌵 Not having this feature makes using Garden painful

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions