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] automatic checkout #97

Open akostadinov opened 2 years ago

akostadinov commented 2 years ago

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

I want to have a shorter workflow file and skip checkout step when all needed is to just checkout source from current event.

For example with buildx I can have:

...
      - name: Build and push Docker image
        id: build-and-push
        uses: docker/build-push-action@v2
        with:
          push: ${{ github.event_name != 'pull_request' }}
          tags: ${{ steps.meta.outputs.tags }}
          platforms: ${{ inputs.platforms }}
          labels: ${{ steps.meta.outputs.labels }}
          file: openshift/system/Dockerfile

With buildah I need to do:

- uses: actions/checkout@v3

- name: Build image
    id: build-image
    uses: redhat-actions/buildah-build@v2
    ...

Describe the solution you'd like

Checkout to happen automatically.