Skip to content

Commit

Permalink
[stf-run-ci] Fail if bundle paths are unset when setting up from bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiesmelfie committed Jul 5, 2023
1 parent acc4194 commit 86cb714
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/stf-run-ci/tasks/setup_stf_from_bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
- debug:
msg: "STO bundle path: {{ __service_telemetry_bundle_image_path}}"

- name: "Fail if bundle paths are unset."
fail:
msg: "Bundle path(s) not set. __smart_gateway_bundle_image_path is '{{ __smart_gateway_bundle_image_path }}' and __service_telemetry_bundle_image_path is '{{ __service_telemetry_bundle_image_path }}'. Both values need to be set."
when:
- __smart_gateway_bundle_image_path | length == 0
- __service_telemetry_bundle_image_path == 0

- name: Deploy SGO via OLM bundle
shell:
cmd: "{{ base_dir }}/working/operator-sdk-v1.5.0 run bundle {{__smart_gateway_bundle_image_path}} {% if pull_secret is defined %}--pull-secret-name=pull-secret --ca-secret-name=registry-tls-ca{% endif %} --namespace={{ namespace }} --timeout 600s"
Expand Down

0 comments on commit 86cb714

Please sign in to comment.