Merge "Add extra conditional for overriding DLRN_PATH_TAG"

This commit is contained in:
Zuul 2023-10-20 16:35:31 +00:00 committed by Gerrit Code Review
commit 0d776f734a

View File

@ -39,9 +39,16 @@ sudo rm -rf /tmp/repo_role_tmp && mkdir -p /tmp/repo_role_tmp
## * Download and use file from {{ repo.down_url }}
## ::
{% if promote_source == 'current' and minor_update|default(false)|bool %}
{% if minor_update|default(false)|bool %}
{% if job.consumer_job | default(false) | bool and promote_source == 'current' %}
## Set only for upstream jobs where content provider job is used and in minor_update in update job
export DLRN_PATH_TAG=${DLRN_PATH_TAG_NEWEST}
{% endif %}
## Set only for downstream job where we use use pre-created images and tag defined in promote_target
{% if override_docker_image_tag | default(false) | bool %}
export DLRN_PATH_TAG={{ promote_target }}
{% endif %}
{% endif %}
curl -Lvo /tmp/repo_role_tmp/{{ repo.filename }} {{ repo.down_url }}
{% if repo.priority is defined and repo.priority %}