Browse Source

Merge "ci: Log in to DockerHub using docker_login"

changes/58/748458/1
Zuul 11 months ago
committed by Gerrit Code Review
parent
commit
cbf0a3924c
  1. 8
      playbooks/container-publish.yaml

8
playbooks/container-publish.yaml

@ -2,11 +2,13 @@
tasks:
- include_vars: container-builder-vars.yaml
- name: Log into DockerHub
docker_login:
username: "{{ magnum_docker_login.user }}"
password: "{{ magnum_docker_login.password }}"
- name: Push images to DockerHub
block:
- command: docker login -u {{ magnum_docker_login.user }} -p '{{ magnum_docker_login.password }}'
no_log: True
retries: 5
- command: docker push {{ magnum_repository }}/{{ item.name }}:{{ item.tag }}
with_items: "{{ magnum_images }}"
retries: 10

Loading…
Cancel
Save