Skip to content

Commit

Permalink
[skip_clone] Add a clone_repos: true to stf-run-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiesmelfie committed Sep 11, 2023
1 parent 36567b5 commit c9d5014
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/stf-run-ci/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ prometheus_webhook_snmp_repository: https://github.com/infrawatch/prometheus-web

base_dir: ''

clone_repos: true
setup_bundle_registry_auth: true
setup_bundle_registry_tls_ca: true
1 change: 1 addition & 0 deletions build/stf-run-ci/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
- create_builds
block:
- name: Setup supporting repositories
when: clone_repos
ansible.builtin.include_tasks: clone_repos.yml
tags:
- clone
Expand Down
12 changes: 11 additions & 1 deletion ci/deploy_stf.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
---
- name: "Deploy STF"
hosts: controller
become: true
environment:
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin/"
tasks:
- name: "Set value for zuul dict when it is not defined (e.g. for testing outside zuul)"
when: not zuul is defined
ansible.builtin.set_fact:
zuul: { project: { src_dir: "repos/stf-verify-containers/service-telemetry-operator" }}

- name: "Set the sto_dir if it isn't already set"
ansible.builtin.set_fact:
sto_dir: '{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}'
sto_dir: '/opt/ci/service-telemetry-operator/'
when: sto_dir | default('') | length == 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:
clone_repos: false
__service_telemetry_storage_ephemeral_enabled: true
__local_build_enabled: false
__deploy_from_bundles_enabled: true
Expand Down

0 comments on commit c9d5014

Please sign in to comment.