Browse Source

ci: Log in to DockerHub using docker_login

Change-Id: Icd923f9e020dfe27f4e9b14e40f0ad53da49e0ff
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
changes/67/747867/2
Spyros Trigazis 10 months ago
parent
commit
1f07c32002
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      playbooks/container-publish.yaml

+ 5
- 3
playbooks/container-publish.yaml View File

@ -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