19 lines
618 B
YAML
19 lines
618 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Login to Dockerhub
|
|
command: "docker login -u {{ doker_hub_login_agent.user }} -p {{ doker_hub_login_agent.password }}"
|
|
no_log: true
|
|
|
|
- name: List images
|
|
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
|
|
|
|
- name: Push to Docker Hub all agent-collector tags
|
|
shell: "docker push monasca/agent-collector"
|
|
|
|
- name: Push to Docker Hub all agent-forwarder tags
|
|
shell: "docker push monasca/agent-forwarder"
|
|
|
|
- name: Push to Docker Hub all statsd tags
|
|
shell: "docker push monasca/statsd"
|