Skip to content

Commit 1609beb

Browse files
bshewaleamartyasinha
authored andcommitted
feat(build_push_container): Replace hardcoded zuul path with configurable variable
Replace hardcoded /home/zuul/ paths with the configurable ansible_user_dir variable in the molecule converge.yml task file to remove hardcoded dependencies and align with other roles in the framework.
1 parent c3fdc7c commit 1609beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/build_push_container/molecule/default/converge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
cifmw_build_push_container_patch_number: 123
3333
cifmw_build_push_container_name: test_container_multi_arch
3434
cifmw_build_push_container_containerfile_path: >-
35-
/home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_push_container/molecule/default/files/containerfile
35+
{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework/roles/build_push_container/molecule/default/files/containerfile
3636
cifmw_build_push_container_registry_name: 127.0.0.1:5001/cifmw-client/test_container_multi_arch
3737
cifmw_build_push_container_registry_tls_verify: false
3838
cifmw_build_push_container_supported_platform: [linux/amd64, linux/arm64]
@@ -78,7 +78,7 @@
7878
cifmw_build_push_container_patch_number: 123
7979
cifmw_build_push_container_name: test_container_single_arch
8080
cifmw_build_push_container_containerfile_path: >-
81-
/home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_push_container/molecule/default/files/containerfile
81+
{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework/roles/build_push_container/molecule/default/files/containerfile
8282
cifmw_build_push_container_registry_name: 127.0.0.1:5001/cifmw-client/test_container_single_arch
8383
cifmw_build_push_container_registry_tls_verify: false
8484
ansible.builtin.include_role:

0 commit comments

Comments
 (0)