diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2018-12-19 13:12:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-12-19 13:12:03 +0000 |
commit | 0a790f7fcf9d20b5cf731f1d505049fabe0a0b96 (patch) | |
tree | 8b5d7c96dc35b5f0d3525c84c38183b37e1e4a1a /ansible/roles/nexus/tasks/insert-images.yml | |
parent | a0eff59859eba3afe8f4c8966f768e14f41aaf96 (diff) | |
parent | 3a7e073323bf1fa24e9f45bd849fb7657f20e859 (diff) |
Merge "Add nexus ansible role"
Diffstat (limited to 'ansible/roles/nexus/tasks/insert-images.yml')
-rw-r--r-- | ansible/roles/nexus/tasks/insert-images.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/roles/nexus/tasks/insert-images.yml b/ansible/roles/nexus/tasks/insert-images.yml new file mode 100644 index 00000000..2e2a45c3 --- /dev/null +++ b/ansible/roles/nexus/tasks/insert-images.yml @@ -0,0 +1,19 @@ +--- +- name: Load docker images and push into registry + block: + - set_fact: + component: "{{ (item.path | basename | splitext)[0] }}" + + - name: Docker login + docker_login: + registry: "{{ runtime_images[component].registry }}" + username: admin + password: admin123 + + - name: Load and push component {{ component }} + docker_image: + name: "{{ runtime_images[component].registry }}{{ runtime_images[component].path }}" + tag: "{{ runtime_images[component].tag }}" + push: yes + load_path: "{{ item.path }}" + |