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

enhancement: Adding Github action to build and push custom catalog from feature branch #1413

Closed

Conversation

CFSNM
Copy link
Member

@CFSNM CFSNM commented Dec 3, 2024

Description

This PR adds a new Github action to build and push catalog image to quay.io registry related to feature branches, in order to have the most updated catalog

https://issues.redhat.com/browse/RHOAIENG-16343

How Has This Been Tested?

This has been tested from local, and needs to be merged in order to test it using the pull_request_target kw

  • You have read the contributors guide.
  • Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
  • Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci openshift-ci bot requested review from jackdelahunt and zdtsw December 3, 2024 09:47
@CFSNM CFSNM changed the base branch from incubation to feature-dummy-branch December 3, 2024 09:47
@CFSNM CFSNM force-pushed the add_feature_branch_wf branch from e1078bf to 9ba7d90 Compare December 3, 2024 09:49
Copy link

openshift-ci bot commented Dec 3, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from cfsnm. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feature-dummy-branch@0b4b1f4). Learn more about missing BASE report.

Additional details and impacted files
@@                   Coverage Diff                   @@
##             feature-dummy-branch    #1413   +/-   ##
=======================================================
  Coverage                        ?   18.91%           
=======================================================
  Files                           ?       30           
  Lines                           ?     3399           
  Branches                        ?        0           
=======================================================
  Hits                            ?      643           
  Misses                          ?     2687           
  Partials                        ?       69           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 }}
Copy link
Contributor

@ykaliuta ykaliuta Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you either use -e or CATALOG_IMG/BUNDLE_IMG from environment command line?

on:
push:
branches:
- "feature-**"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we really targeting subdirectories here?

---
name: Build and Push Feature Branch Custom Catalog
env:
BUNDLE_IMG: quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator:${GITHUB_REF##*/}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt bundle in quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator-bundle:${GITHUB_REF##*/}

jobs:
build-and-push-feature-branch-custom-catalog:
runs-on: ubuntu-latest
timeout-minutes: 60
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too much, 5mins enough

@CFSNM
Copy link
Member Author

CFSNM commented Dec 3, 2024

Closing this one, the change will be done in Openshift CI

@CFSNM CFSNM closed this Dec 3, 2024
@CFSNM CFSNM deleted the add_feature_branch_wf branch December 3, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants