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

Add An Input To Set Docker Buildx version

Open
#57 0 comments 3 reactions 0 assignees View on GitHub
triage
Dominant language
Dockerfile
Stars
14
Forks
15
Avg merge
12m
Merged PRs (30d)
2

Description

Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) or visit our [Slack Archive](https://archive.sweetops.com/).

[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

## 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](https://github.com/cloudposse/github-action-docker-build-push/assets/209406/6790412c-1bdc-47d6-acfd-44d9babe7608)

![build-push-issue-report](https://github.com/cloudposse/github-action-docker-build-push/assets/209406/7fdd9c2d-045e-4832-b9bd-6048dd87307b)

## 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](https://github.com/cloudposse/github-action-docker-build-push/assets/209406/e4c8b475-0900-4e18-a3b2-0719ea5c6ac4)

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.