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

Add build using buildah #5

Open
gbraad opened this issue Jan 23, 2025 · 0 comments
Open

Add build using buildah #5

gbraad opened this issue Jan 23, 2025 · 0 comments

Comments

@gbraad
Copy link
Contributor

gbraad commented Jan 23, 2025

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

@gbraad gbraad pinned this issue Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant