From 9ba7d900ddf443e0a772c6404468416d6647494a Mon Sep 17 00:00:00 2001 From: cesar Date: Tue, 3 Dec 2024 10:46:48 +0100 Subject: [PATCH] enhancement: Adding Github action to build and push custom catalog from feature branch --- .github/workflows/feature-branch-image.yml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/feature-branch-image.yml diff --git a/.github/workflows/feature-branch-image.yml b/.github/workflows/feature-branch-image.yml new file mode 100644 index 00000000000..776bc04c9d2 --- /dev/null +++ b/.github/workflows/feature-branch-image.yml @@ -0,0 +1,28 @@ +--- +name: Build and Push Feature Branch Custom Catalog +env: + BUNDLE_IMG: quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator:${GITHUB_REF##*/} + CATALOG_IMG: quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator-catalog:${GITHUB_REF##*/} +on: + push: + 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: Login to quay.io + run: | + podman login -u ${{ secrets.QUAY_ID }} -p ${{ secrets.QUAY_TOKEN }} quay.io + - 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 }} \ No newline at end of file