Skip to content

Commit

Permalink
[stf-run-ci] Update chdir for getting operator-sdk
Browse files Browse the repository at this point in the history
Add base_dir so that operator-sdk is in the expected location
  • Loading branch information
elfiesmelfie committed Jun 27, 2023
1 parent be2bda0 commit b790625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/stf-run-ci/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@

- name: Get new operator sdk
when: __local_build_enabled | bool or __deploy_from_bundles_enabled | bool or __deploy_from_index_enabled | bool
command: "{{ base_dir }}/get_new_operator_sdk.sh {{ new_operator_sdk_version }}"
command:
cmd: "./get_new_operator_sdk.sh {{ new_operator_sdk_version }}"
chdir: "{{ base_dir }}"

# -- create artifacts
- when: __local_build_enabled | bool
Expand Down
2 changes: 2 additions & 0 deletions build/stf-run-ci/tasks/setup_stf_local_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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 }} \
Expand Down Expand Up @@ -57,6 +58,7 @@
shell:
chdir: "{{ base_dir }}"
cmd: |
OPERATOR_SDK="{{ base_dir }}/working/operator-sdk" \
WORKING_DIR="{{ base_dir }}/working/service-telemetry-operator-bundle" \
RELATED_IMAGE_PROMETHEUS_WEBHOOK_SNMP={{ prometheus_webhook_snmp_image_path | parse_image | quote }} \
RELATED_IMAGE_PROMETHEUS_WEBHOOK_SNMP_TAG={{ prometheus_webhook_snmp_image_path | parse_tag | quote }} \
Expand Down

0 comments on commit b790625

Please sign in to comment.