blob: 1ddf28eff75d46f2ed107a5e624a79ad35d79952 [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
22 with_items: "{{ ib_built }} + {{ ib_pulled }}"
23
24- name: Tag and push the images managed by ImageBuilder
25 docker_image:
Andy Bavier83e6fb62017-08-15 14:30:46 -070026 name: "{{ item.base }}:{{ build_docker_tag }}"
27 repository: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}"
Andy Bavierd2cab422017-07-24 16:38:24 -070028 push: True
Andy Bavier83e6fb62017-08-15 14:30:46 -070029 with_items: "{{ ib_built }} + {{ ib_pulled }}"