-
Notifications
You must be signed in to change notification settings - Fork 41
fix(ISV-7300): remove the need for authentication in test pipeline #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,8 @@ | |
| roles_path = ../roles | ||
| display_skipped_hosts = no | ||
| display_ok_hosts = yes | ||
| stdout_callback = yaml | ||
| stdout_callback = ansible.builtin.default | ||
| result_format = yaml | ||
|
Comment on lines
+5
to
+6
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These were missed previously. |
||
| callback_whitelist = log_plays | ||
|
|
||
| [callback_log_plays] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| - name: "Pull the base image {{ container_tool }} pull --arch={{ mfbc_architecture }} {{ mirror_multiarch_image }}" | ||
| shell: "{{ container_tool }} pull --arch={{ mfbc_architecture }} {{ mirror_multiarch_image }}" | ||
| when: registry_redhat_io_user is defined and registry_redhat_io_token is defined | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This condition did not make sense since the image is retagged in the next step unconditionally. If the user and/or token were not defined, this playbook just failed. |
||
|
|
||
| - name: "Retag the base image" | ||
| shell: "{{ container_tool }} tag {{ mirror_multiarch_image }} {{ mirror_multiarch_image }}-{{ mfbc_architecture }}" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,28 +105,8 @@ | |
| state: directory | ||
| mode: 01777 | ||
|
|
||
| - name: "Fail on registry.redhat.io login " | ||
| fail: | ||
| msg: "Unable to login to registry.redhat.io with user '{{ registry_redhat_io_user }}'" | ||
| when: | ||
| - (registry_redhat_io_user is undefined and registry_redhat_io_token is undefined) or (registry_redhat_io_user|length == 0 or registry_redhat_io_token|length == 0) | ||
|
|
||
| - name: "Login to registry.redhat.io" | ||
| shell: "{{ container_tool }} login -u='{{ registry_redhat_io_user }}' -p='{{ registry_redhat_io_token }}' registry.redhat.io" | ||
| # no_log: true | ||
| when: | ||
| - registry_redhat_io_user is defined and registry_redhat_io_token is defined | ||
| - registry_redhat_io_user|length > 0 or registry_redhat_io_token|length > 0 | ||
| - mirror_multiarch_image.startswith('registry.redhat.io') | ||
|
|
||
| - name: "Generate cache locally" | ||
| # shell: "{{ opm_bin_path }} serve {{ pfbc_fbc_config_path }} --cache-dir={{ pfbc_local_cache_dir }} --cache-only --termination-log /dev/null" | ||
| shell: "{{ container_tool }} run -it --rm --entrypoint /bin/opm -v {{ pfbc_extracted_fbc_location }}:/conf -u 1001:0 {{ mirror_multiarch_image }} serve /conf/configs --cache-dir=/conf/cache --cache-only --termination-log /dev/null" | ||
|
|
||
| # - name: "Copy cache" | ||
| # synchronize: | ||
| # src: "{{ pfbc_local_cache_dir }}/" | ||
| # dest: "{{ pfbc_extracted_fbc_location }}/cache/" | ||
| - name: "Generate cache locally using host opm to solve arch issues" | ||
| shell: "{{ opm_bin_path }} serve {{ pfbc_fbc_config_path }} --cache-dir={{ pfbc_extracted_fbc_location }}/cache --cache-only --termination-log /dev/null" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found out that the custom cache IS needed. It's because without it, the playbook would try to run opm from within the multuarch image. It passed for However the cache can be created without ever reaching out to |
||
|
|
||
| when: pfbc_opm_bug_line.found | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This URL changed (the original no longer works, the image was not buildable).