tripleo-container-tag: pull image before tagging
Adding a container pull before the tagging operation so we are sure that the image is in the local registry. We were relying on docker-puppet.py script to perform the pull but now we do the tag with Ansible, it's safer to ensure that the image is here. This patch runs a container pull before the container tag command. It works with both podman & docker since we use container_cli. Change-Id: Ib9d4ae9c2b415e427deb4b0cfc441febaa210f77 Closes-Bug: #1802511
This commit is contained in:
parent
b031901a0e
commit
7370ca76aa
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
- name: Pull {{ container_image }} image
|
||||
shell: "{{ container_cli }} pull {{container_image}}"
|
||||
|
||||
- name: Tag {{ container_image_latest }} to latest {{ container_image }} image
|
||||
shell: "{{ container_cli }} tag {{container_image}} {{container_image_latest}}"
|
||||
|
|
Loading…
Reference in New Issue