Skip to content

Commit

Permalink
Get STO and SGO bundle versions from info
Browse files Browse the repository at this point in the history
Parse the oc image info output to get
the STO and SGO bundle versions
  • Loading branch information
vkmc committed Jul 8, 2024
1 parent e77b986 commit 8b74361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/stf-run-ci/tasks/create_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
ansible.builtin.command: oc image info {{ __smart_gateway_bundle_image_path }}
register: sgo_bundle_info

- name: Get STO and SGO operator bundle versions
- name: Get STO and SGO bundle versions
ansible.builtin.set_fact:
sto_operator_bundle_version: "{{ sto_bundle_info.stdout_lines[-1] | from_json }}"
sgo_operator_bundle_version: "{{ sgo_bundle_info.stdout_lines[-1] | from_json }}"
sto_operator_bundle_version: "{{ sto_bundle_info.stdout_lines[-1] | split('=') | last }}"
sgo_operator_bundle_version: "{{ sgo_bundle_info.stdout_lines[-1] | split('=') | last }}"

- name: Set info variables from provided pre-built bundles
ansible.builtin.set_fact:
Expand Down

0 comments on commit 8b74361

Please sign in to comment.