File: docker-publish.yml

package info (click to toggle)
python-monascaclient 2.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: python: 2,487; sh: 111; makefile: 21
file content (12 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
---
- hosts: all
  tasks:
    - name: Login to Dockerhub
      command: "docker login -u {{ doker_hub_login_client.user }} -p {{ doker_hub_login_client.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/client:{{ zuul.tag if zuul.pipeline == 'release' else 'master'}}"