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 --jobs N flag on buildah bud #115

Open
anthr76 opened this issue Dec 1, 2022 · 1 comment
Open

[FEATURE] Support --jobs N flag on buildah bud #115

anthr76 opened this issue Dec 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@anthr76
Copy link

anthr76 commented Dec 1, 2022

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

In order to possibly speed up builds support the --jobs argument

Describe the solution you'd like

--jobs N

Run up to N concurrent stages in parallel. If the number of jobs is greater than 1, stdin will be read from /dev/null. If 0 is specified, then there is no limit on the number of jobs that run in parallel.

REF: https://github.com/containers/buildah/blob/main/docs/buildah-build.1.md

Describe alternatives you've considered

Additional context

This can help to greatly reduce build times for large multi-arch builds.

@anthr76 anthr76 added the enhancement New feature or request label Dec 1, 2022
@akostadinov
Copy link

+1, for some reason adding as extra args seems to be ignored

      - name: Build image
        id: build-image
        uses: redhat-actions/buildah-build@v2
        with:
          tags: ${{ steps.meta.outputs.tags }}
          platforms: linux/amd64,linux/s390x,linux/ppc64le
          labels: ${{ steps.meta.outputs.labels }}
          layers: false
          oci: true
          tls-verify: true
          extra-args: |
            --squash
            --jobs=3
          build-args: |
            PORTA_IMAGE=quay.io/3scale/porta:free-sphinx
          containerfiles: |
            Containerfile

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

No branches or pull requests

2 participants