Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support TemplatedField for build.artifacts.docker.cliFlags #9581

Open
kitagry opened this issue Nov 23, 2024 · 0 comments · May be fixed by #9582
Open

Feature: Support TemplatedField for build.artifacts.docker.cliFlags #9581

kitagry opened this issue Nov 23, 2024 · 0 comments · May be fixed by #9582

Comments

@kitagry
Copy link

kitagry commented Nov 23, 2024

Expected behavior

Upon installing Docker Buildx, the docker build command becomes an alias for docker buildx build. This means that any subsequent docker build commands will be executed using the more advanced features provided by Buildx. Specifically, we intend to leverage the --cache-to=type=registry,ref=repo/image:tag flag within these commands. In order to several registry, I want to TemplateField for build.artifacts.docker.cliFlags as following.

build:
  artifacts:
    - image: repo/image
      context: .
      docker:
        dockerfile: Dockerfile
        cliFlags:
          - "--cache-to={{ .IMAGE_REPO }}/{{ .IMAGE_NAME }}:latest-cache"

Actual behavior

We can't use TemplateField with cliFlags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant