Skip to content

Commit

Permalink
[ci] Add a deploy stage for STF
Browse files Browse the repository at this point in the history
This playbook will deploy the built STF images from bundles
  • Loading branch information
elfiesmelfie committed Jun 29, 2023
1 parent b992dca commit c4454f8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion ci/deploy_stf.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
---
- hosts: controller
tasks:
- name: "Deploy STF object"
- set_fact:
sto_dir: '{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}'
when: sto_dir | default('') | length == 0

- name: "Deploy STF"
ansible.builtin.import_role:
name: '../build/stf-run-ci'
vars:
__deploy_stf: true
# This could be passed as a job param, e.g. to test deploy from bundles/index
__deploy_from_bundles_enabled: true
__local_build_enabled: false
__service_telemetry_snmptraps_enabled: true
__service_telemetry_storage_ephemeral_enabled: true
__working_branch: master
base_dir: "{{ sto_dir }}/build"
sgo_branch: "add_logs_to_generate_bundle"

- name: "Check that the STF deployment was successful"
ansible.builtin.shell:
cmd: |
OCP_PROJECT=service-telemetry VALIDATION_SCOPE=use_redhat ./build/validate_deployment.sh
Expand Down

0 comments on commit c4454f8

Please sign in to comment.