Skip to content

Commit

Permalink
[stf-run-ci][create_catalog] Default package name in local build only
Browse files Browse the repository at this point in the history
Local builds get the default package name, non-local ones will get it
from the actual bundle's CSV.
  • Loading branch information
compi-migui committed Nov 8, 2024
1 parent 4f8ff58 commit 81668dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/stf-run-ci/tasks/create_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
sto_bundle_info: "{{ generate_bundle_sto.stdout_lines[-1] | from_json }}"
sgo_bundle_info: "{{ generate_bundle_sgo.stdout_lines[-1] | from_json }}"

- name: Generate default package names if not present
when: sto_bundle_info is defined and sto_bundle_info.package_name is not defined
- name: Generate default package names (local build)
when: __local_build_enabled | bool and not __deploy_from_bundles_enabled | bool
ansible.builtin.set_fact:
sto_bundle_info: "{{ sto_bundle_info | combine({'package_name':'service-telemetry-operator.v%s'|format(sto_bundle_info.operator_bundle_version)}) }}"
sgo_bundle_info: "{{ sgo_bundle_info | combine({'package_name':'smart-gateway-operator.v%s'|format(sto_bundle_info.operator_bundle_version)}) }}"
Expand Down

0 comments on commit 81668dd

Please sign in to comment.