Skip to content

Add build using buildah #5

Open
@gbraad

Description

@gbraad

Describe build using buildah:

    - name: Build image
      id: build-image
      uses: redhat-actions/buildah-build@v2
      with:
        image: ${{ env.IMAGE_NAME }}
        tags: ${{ env.IMAGE_TAGS }}
        oci: true
        build-args: |
          BASE_IMAGE=quay.io/fedora/fedora-bootc
          BASE_VERSION=41
        containerfiles: |
          ./Containerfile
    - name: Push to registry
      id: push-to-registry
      uses: redhat-actions/push-to-registry@v2
      with:
        image: ${{ steps.build-image.outputs.image }}
        tags: ${{ steps.build-image.outputs.tags }}
        registry: ${{ env.IMAGE_REGISTRY }}
        username: ${{ env.REGISTRY_USER }}
        password: ${{ env.REGISTRY_PASSWORD }}
        extra-args: |
          --disable-content-trust
    - name: Print image url
      run: echo "Image pushed to ${{ steps.push-to-registry.outputs.registry-paths }}"

https://github.com/gbraad-fedora/fedora-bootc-workstation/blob/f1c87a33820ceacec6a9946ce59e581f6673fe43/.github/workflows/container-build.yml#L28-L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions