e6036f52ed
The secrets can not be inherited. Change-Id: Ie0f99f470a419c57865eb8b0a14e465ae228c799
9 lines
329 B
YAML
9 lines
329 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Login to Dockerhub
|
|
command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}"
|
|
no_log: true
|
|
|
|
- shell: "for img in $(docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep kolla ); do docker push $img; done"
|