Skip to content

Commit

Permalink
Option to force Konflux Index
Browse files Browse the repository at this point in the history
This is for periodic runs where we'll use the latest available Konflux
index. Periodic runs in CI have OPENSHIFT_CI variable set so we need to
have an option to force the Konflux index.
  • Loading branch information
mgencur committed Oct 17, 2024
1 parent d369a36 commit b8fac61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/lib/catalogsource.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ function install_catalogsource {

index_image="${INDEX_IMAGE}"

# Build bundle and index images only when running in CI or when DOCKER_REPO_OVERRIDE is defined.
# Otherwise the latest nightly build will be used for CatalogSource.
if [ -n "$OPENSHIFT_CI" ] || [ -n "$DOCKER_REPO_OVERRIDE" ]; then
# Build bundle and index images only when running in CI or when DOCKER_REPO_OVERRIDE is defined,
# unless overridden by FORCE_KONFLUX_INDEX.
if { [ -n "$OPENSHIFT_CI" ] || [ -n "$DOCKER_REPO_OVERRIDE" ]; } && [ -z "$FORCE_KONFLUX_INDEX" ]; then
index_image=image-registry.openshift-image-registry.svc:5000/$OLM_NAMESPACE/serverless-index:latest
rootdir="$(dirname "$(dirname "$(dirname "$(realpath "${BASH_SOURCE[0]}")")")")"

Expand Down

0 comments on commit b8fac61

Please sign in to comment.