blob: a31c93878183d6efa3260349b8bfb798d51169e1 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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 Bavierd2cab422017-07-24 16:38:24 -070017---
18- name: Remove old local images
19 docker_image:
Andy Bavier83e6fb62017-08-15 14:30:46 -070020 name: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}"
Andy Bavierd2cab422017-07-24 16:38:24 -070021 state: absent
Andy Bavier0272aa52017-08-16 15:40:06 -070022 with_flattened:
23 - "{{ ib_built }}"
24 - "{{ ib_pulled }}"
25 - "{{ ib_preexisting_images }}"
Andy Bavierd2cab422017-07-24 16:38:24 -070026
27- name: Tag and push the images managed by ImageBuilder
28 docker_image:
Andy Bavier83e6fb62017-08-15 14:30:46 -070029 name: "{{ item.base }}:{{ build_docker_tag }}"
30 repository: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}"
Andy Bavierd2cab422017-07-24 16:38:24 -070031 push: True
Andy Bavier0272aa52017-08-16 15:40:06 -070032 with_flattened:
33 - "{{ ib_built }}"
34 - "{{ ib_pulled }}"
35 - "{{ ib_preexisting_images }}"