Skip to content

Adding Github action to build and push custom catalog from feature branch #25

Adding Github action to build and push custom catalog from feature branch

Adding Github action to build and push custom catalog from feature branch #25

---
name: Build and Push Feature Branch Custom Catalog
env:
BUNDLE_IMG: quay.io/opendatahub/opendatahub-operator:feature-operator-refactor
CATALOG_IMG: quay.io/opendatahub/opendatahub-operator-catalog:feature-operator-refactor
on:
pull_request:
branches:
- "feature-**"
permissions:
pull-requests: read
checks: read
jobs:
build-and-push-feature-branch-custom-catalog:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Wait for checks to be completed
uses: poseidon/wait-for-status-checks@v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to quay.io
run: |
podman login -u csannico -p Cesar44quay quay.io
- name: Create bundle manifests
run: make bundle
- name: Build Feature Branch Catalog
run: |
make catalog-build -e CATALOG_IMG=${{ env.CATALOG_IMG }} -e BUNDLE_IMG=${{ env.BUNDLE_IMG }}
- name: Push Feature Branch Catalog to quay.io
run: |
make catalog-push -e CATALOG_IMG=${{ env.CATALOG_IMG }}