Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 17 | --- |
| 18 | - name: Remove old local images |
| 19 | docker_image: |
Andy Bavier | 83e6fb6 | 2017-08-15 14:30:46 -0700 | [diff] [blame] | 20 | name: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}" |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 21 | state: absent |
Andy Bavier | 0272aa5 | 2017-08-16 15:40:06 -0700 | [diff] [blame] | 22 | with_flattened: |
| 23 | - "{{ ib_built }}" |
| 24 | - "{{ ib_pulled }}" |
| 25 | - "{{ ib_preexisting_images }}" |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 26 | |
| 27 | - name: Tag and push the images managed by ImageBuilder |
| 28 | docker_image: |
Andy Bavier | 83e6fb6 | 2017-08-15 14:30:46 -0700 | [diff] [blame] | 29 | name: "{{ item.base }}:{{ build_docker_tag }}" |
| 30 | repository: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}" |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 31 | push: True |
Andy Bavier | 0272aa5 | 2017-08-16 15:40:06 -0700 | [diff] [blame] | 32 | with_flattened: |
| 33 | - "{{ ib_built }}" |
| 34 | - "{{ ib_pulled }}" |
| 35 | - "{{ ib_preexisting_images }}" |