redhat-actions / buildah-build

GitHub Action to use 'buildah' to build a container image.
https://github.com/marketplace/actions/buildah-build
MIT License
136 stars 35 forks source link

[FEATURE] support buildah manifest add #106

Open willzhang opened 1 year ago

willzhang commented 1 year ago

Is your feature request related to a problem? Please describe.

i have already build arm64 and amd64 images to dockerhub.

i don't want to build image ,i just want to do this with actions,any suggestion?

REPO=example.com/example/shazam
buildah manifest create $REPO:latest
for IMGTAG in amd64 s390x ppc64le arm64; do \
        buildah manifest add $REPO:latest docker://$REPO:IMGTAG; \
    done
buildah manifest push --all $REPO:latest

Describe the solution you'd like

    steps:
      - name: Buildah Action
        id: manifest _image
        uses: redhat-actions/buildah-build@v2
        with:
          source_image:  app01-v1.1.0-amd64, app01-v1.1.0--arm64
          tartet_image:  app01-v1.1.0
          push: docker.io/xxx/app01-v1.1.0

Describe alternatives you've considered

Additional context