You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monasca-persister/playbooks/docker-publish.yml

13 lines
464 B

---
- hosts: all
tasks:
- name: Login to Dockerhub
command: "docker login -u {{ doker_hub_login_persister.user }} -p {{ doker_hub_login_persister.password }}"
no_log: true
- name: List images
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
- name: Push to Docker Hub all tags
shell: "docker push monasca/persister:{{ zuul.tag if zuul.pipeline == 'release' else 'master'}}"