zuul-jobs/roles/upload-docker-image/tasks/main.yaml

7 lines
252 B
YAML

- name: Log in to dockerhub
command: "docker login -u {{ credentials.username }} -p {{ credentials.password }}"
no_log: true
- name: Upload to dockerhub
command: "docker push {{ item.repository }}:change_{{ zuul.change }}"
loop: "{{ images }}"