|
29 | 29 | recursive: true
|
30 | 30 | when: arch == "s390x"
|
31 | 31 |
|
32 |
| - #- name: Create a remote ccache directory if it does not exist |
33 |
| - # ansible.builtin.file: |
34 |
| - # path: "{{ collector_root }}/{{ ccache_dir }}" |
35 |
| - # state: directory |
36 |
| - # mode: '0777' |
37 |
| - # when: arch == "s390x" |
38 |
| - |
39 |
| - #- name: Create a controller ccache directory if it does not exist |
40 |
| - # delegate_to: localhost |
41 |
| - # ansible.builtin.file: |
42 |
| - # path: "{{ github_workspace }}/{{ ccache_dir }}" |
43 |
| - # state: directory |
44 |
| - # when: arch == "s390x" |
45 |
| - |
46 |
| - - name: Check if remote ccache archive exists on controller |
| 32 | + - name: Check if ccache archive exists |
47 | 33 | delegate_to: localhost
|
48 | 34 | ansible.builtin.stat:
|
49 | 35 | path: "{{ github_workspace }}/{{ ccache_path }}"
|
50 | 36 | register: ccache_check
|
51 | 37 | when: arch == "s390x"
|
52 | 38 |
|
53 |
| - - name: Copy ccache from the controller to build VM |
| 39 | + - name: Copy ccache to build |
54 | 40 | ansible.builtin.copy:
|
55 | 41 | src: "{{ github_workspace }}/{{ ccache_path }}"
|
56 | 42 | dest: "{{ collector_root }}/{{ ccache_dir }}/"
|
57 | 43 | when: arch == "s390x" and ccache_check.stat.exists
|
58 | 44 |
|
59 |
| - - name: Inject docker cache manually |
| 45 | + - name: Inject docker cache |
60 | 46 | ansible.builtin.shell:
|
61 | 47 | cmd: ansible/scripts/inject_docker_cache.sh "{{ collector_root }}/{{ ccache_dir }}" "{{ container_ccache_dir }}"
|
62 | 48 | chdir: "{{ collector_root }}"
|
|
75 | 61 | chdir: "{{ collector_root }}"
|
76 | 62 | when: arch == "s390x"
|
77 | 63 |
|
78 |
| - - name: Copy ccache from build machine to controller |
| 64 | + - name: Fetch ccache |
79 | 65 | ansible.builtin.fetch:
|
80 | 66 | src: "{{ collector_root }}/{{ ccache_path }}"
|
81 | 67 | dest: "{{ github_workspace }}/{{ ccache_dir }}/"
|
82 | 68 | flat: yes
|
83 | 69 | when: arch == "s390x"
|
84 | 70 |
|
| 71 | + - name: Fetch build log |
| 72 | + ansible.builtin.fetch: |
| 73 | + src: "{{ collector_root }}/build_builder_image.log" |
| 74 | + dest: "{{ github_workspace }}/" |
| 75 | + flat: yes |
| 76 | + when: arch == "s390x" |
| 77 | + |
85 | 78 | - name: Retag collector builder image to arch specific
|
86 | 79 | community.docker.docker_image:
|
87 | 80 | name: "quay.io/stackrox-io/collector-builder:{{ ansible_env.COLLECTOR_BUILDER_TAG }}"
|
|
0 commit comments