Commit 33f7b099 authored by ale's avatar ale

Merge branch 'registry-password' into 'master'

docker: stop leaking password on command line

Closes prod#150

See merge request !97
parents 96a42eaf c50c9b8d
Pipeline #6132 failed with stages
in 23 minutes and 22 seconds
......@@ -17,7 +17,7 @@
when: "container_runtime == 'podman'"
- name: Login to the Docker registry
command: docker login -u "{{ docker_registry_username }}" -p "{{ docker_registry_password }}" "{{ docker_registry_url }}"
command: 'echo -n "{{ docker_registry_password }}" | docker login -u "{{ docker_registry_username }}" --password-stdin "{{ docker_registry_url }}"'
changed_when: False
when: "docker_registry_url != ''"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment