diff --git a/.zuul.yaml b/.zuul.yaml index 63ef360e9..ca34e7c8c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -45,8 +45,8 @@ pre-run: - ci/prepare.yml run: - - ci/build_stf.yml - #- ci/deploy_stf.yml + #- ci/build_stf.yml + - ci/deploy_stf.yml - ci/test_stf.yml #stf-1.5-ocp-4.10 diff --git a/build/stf-run-ci/tasks/setup_stf_from_bundles.yml b/build/stf-run-ci/tasks/setup_stf_from_bundles.yml index cecbb773a..24dcf2b50 100644 --- a/build/stf-run-ci/tasks/setup_stf_from_bundles.yml +++ b/build/stf-run-ci/tasks/setup_stf_from_bundles.yml @@ -106,10 +106,10 @@ ansible.builtin.debug: msg: "Images: {{ images.stdout }}" -- name: "[tmp] Set the values for the bundle image paths" - ansible.builtin.set_fact: - __smart_gateway_bundle_image_path: "{{ sgo_bundle_image_path }}" - __service_telemetry_bundle_image_path: "{{ sto_bundle_image_path }}" +#- name: "[tmp] Set the values for the bundle image paths" +# ansible.builtin.set_fact: +# __smart_gateway_bundle_image_path: "{{ sgo_bundle_image_path }}" +# __service_telemetry_bundle_image_path: "{{ sto_bundle_image_path }}" - name: "Ensure that the bundle paths are set." ansible.builtin.assert: diff --git a/ci/deploy_stf.yml b/ci/deploy_stf.yml index 6a5ef2774..2335670eb 100644 --- a/ci/deploy_stf.yml +++ b/ci/deploy_stf.yml @@ -24,7 +24,27 @@ # base_dir: "{{ sto_dir }}/build" # sgo_branch: "add_logs_to_generate_bundle" # new_operator_sdk_version: "v1.5.0" + + # ansible-playbook -e __service_telemetry_storage_ephemeral_enabled=true -e __local_build_enabled=false -e __deploy_from_bundles_enabled=true -e __service_telemetry_bundle_image_path=quay.io/infrawatch-operators/service-telemetry-operator-bundle:nightly-head -e __smart_gateway_bundle_image_path=quay.io/infrawatch-operators/smart-gateway-operator-bundle:nightly-head --skip-tags bundle_registry_tls_ca --skip-tags bundle_registry_auth build/run-ci.yaml + # + # from: https://github.com/infrawatch/service-telemetry-operator/pull/437 + - name: "Deploy STF from the created bundles" + ansible.builtin.import_role: + name: '../build/stf-run-ci' + vars: + __service_telemetry_storage_ephemeral_enabled: true + __local_build_enabled: false + __deploy_from_bundles_enabled: true + __service_telemetry_bundle_image_path: "quay.io/infrawatch-operators/service-telemetry-operator-bundle:nightly-head" + __smart_gateway_bundle_image_path: "quay.io/infrawatch-operators/smart-gateway-operator-bundle:nightly-head" + #--skip-tags bundle_registry_tls_ca + setup_bundle_registry_tls_ca: false + #--skip-tags bundle_registry_auth + setup_bundle_registry_auth: false + base_dir: "{{ sto_dir }}/build" + sgo_branch: "add_logs_to_generate_bundle" + - name: "Check that the STF deployment was successful" ansible.builtin.shell: cmd: |