Add retries to promote-docker-image

This should make this step more robust to remote failures.

Change-Id: I3f3d643ac5285027bda909ac6d55d8959a4b4f79
This commit is contained in:
James E. Blair 2019-03-20 09:02:18 -07:00
parent a5dbe86b4b
commit 61a76f95f0
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@
username: "{{ docker_credentials.username }}"
password: "{{ docker_credentials.password }}"
register: jwt_token
delay: 5
retries: 3
until: jwt_token and jwt_token.status==200
- name: Promote image
loop: "{{ docker_images }}"
loop_control: