Skip to content

Commit

Permalink
[stf-run-ci] Always show output of sgo/generate_bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiesmelfie committed Jun 26, 2023
1 parent 4ba8ab5 commit d0c160a
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions build/stf-run-ci/tasks/setup_stf_local_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@
# to use the generate_bundle_<name> content for use in other places

# --- Smart Gateway Operator ---
- name: Generate Smart Gateway Operator CSV
shell:
chdir: "{{ base_dir }}/working/smart-gateway-operator/build"
cmd: |
OPERATOR_SDK="{{ base_dir }}/working/operator-sdk" \
WORKING_DIR="{{ base_dir }}/working/smart-gateway-operator-bundle" \
RELATED_IMAGE_CORE_SMARTGATEWAY={{ sg_core_image_path | parse_image | quote }} \
RELATED_IMAGE_BRIDGE_SMARTGATEWAY={{ sg_bridge_image_path | parse_image | quote }} \
RELATED_IMAGE_CORE_SMARTGATEWAY_TAG={{ sg_core_image_path | parse_tag | quote }} \
RELATED_IMAGE_BRIDGE_SMARTGATEWAY_TAG={{ sg_bridge_image_path | parse_tag | quote }} \
OPERATOR_IMAGE={{ sgo_image_path | parse_image | quote }} \
OPERATOR_TAG={{ sgo_image_path | parse_tag | quote }} \
./generate_bundle.sh
register: generate_bundle_sgo
- block:
- name: Generate Smart Gateway Operator CSV
shell:
chdir: "{{ base_dir }}/working/smart-gateway-operator/build"
cmd: |
OPERATOR_SDK="{{ base_dir }}/working/operator-sdk" \
WORKING_DIR="{{ base_dir }}/working/smart-gateway-operator-bundle" \
RELATED_IMAGE_CORE_SMARTGATEWAY={{ sg_core_image_path | parse_image | quote }} \
RELATED_IMAGE_BRIDGE_SMARTGATEWAY={{ sg_bridge_image_path | parse_image | quote }} \
RELATED_IMAGE_CORE_SMARTGATEWAY_TAG={{ sg_core_image_path | parse_tag | quote }} \
RELATED_IMAGE_BRIDGE_SMARTGATEWAY_TAG={{ sg_bridge_image_path | parse_tag | quote }} \
OPERATOR_IMAGE={{ sgo_image_path | parse_image | quote }} \
OPERATOR_TAG={{ sgo_image_path | parse_tag | quote }} \
./generate_bundle.sh
register: generate_bundle_sgo

- name: Results of SGO bundle generation
debug:
var: generate_bundle_sgo.stdout
always:
- name: Results of SGO bundle generation
debug:
var: generate_bundle_sgo.stdout

- name: Replace namespace in SGO role binding
replace:
Expand Down

0 comments on commit d0c160a

Please sign in to comment.