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

Add An Input To Set Docker Buildx version

Aperta
#57 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
Dockerfile
Stelle
14
Fork
15
Merge medio
12m
PR unite (30g)
2

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, github-actions
Ambito
ci-cd, devops
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.