Add An Input To Set Docker Buildx version

Open
#57 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, github-actions
Domain
ci-cd, devops

Research direction

Inspect the action's input definitions and the Docker Buildx setup entry point, then trace how the provenance option is passed to the build. Add an input for selecting the Buildx version and verify that setting it allows provenance: false to be honored and prevents a multi-platform image index from being pushed to ECR.

Written by the indexing model from the issue text.

Description

triage

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Ability to provide a buildx version so when setting provenance: false it is not ignored.

Expected Behavior

Expect a buildx version to be set so provenance: false is recognized and multiple format image is not pushed to ecr.

Use Case

This Current version of build-push action pushes muilti platform multi-image/image index types to ecr. Due to AWS Lambda not supporting image index artifact type I need to turn off multi image. When I set provenance: false it is ignored because a buildx version is not provided and no default is set. buildx version states unknown

buildx-error

build-push-issue-report

Describe Ideal Solution

A clear and concise description of what you want to happen. If you don't know, that's okay.
Provide an input that sets the buildx version

Alternatives Considered

Explain what alternative solutions or features you've considered.

I have added steps in the workflow that set buildx version before calling the build push action.

CleanShot 2024-01-04 at 09 16 07

Additional Context

Add any other context or screenshots about the feature request here.

Created an issue on docker build-push github repo: https://github.com/docker/build-push-action/issues/1035

Dominant language
Dockerfile
Stars
14
Forks
15
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from cloudposse/github-action-docker-build-push

All issues in cloudposse/github-action-docker-build-push

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.