Skip to content

Conversation

@RanabirChakraborty
Copy link
Contributor


- name: Store current nginx image value in a variable
set_fact:
nginx_latest_image_tag: "{{ local_image_tags.results[0].images[0].RepoTags[0] }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC that assumes that nginx is always the first result returned, is that correct?

If so, that works currently because it's the only remote image, but if we add a new remote image wouldn't this start failing in unexpected ways?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Modified the PR accordingly.

nginx_latest_image_tag: "{{ local_image_tags.results[0].images[0].RepoTags[0] }}"

- name: Pull the latest Nginx image
shell: "podman pull {{ nginx.latest_image }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but where is the nginx.latest_image defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed adding the vars. modified it.

@rpelisse
Copy link
Contributor

@RanabirChakraborty I still need to find some time to review this, but, in the meantime, can you rebase and push?

@RanabirChakraborty
Copy link
Contributor Author

@rpelisse thanks! I have done the rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants