Commit c50c9b8d authored by godog's avatar godog

docker: stop leaking password on command line

Fixes ai3/prod#150
parent f2b67fab
Pipeline #6128 failed with stage
in 18 minutes and 56 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