summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-09-04 10:36:30 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2019-09-04 10:34:01 +0000
commit80409ef270c67d334e49ab0755de5b94dc4eaee2 (patch)
tree13aa4a9656bf91bc5ceb3811435aaebba21b9c94 /build
parent0364bc6ebc6d26877f1db1be342a10b24f51d80b (diff)
Change the way of providing docker login password
As --password is insecure way, changing to recommended way using --password-stdin instead Issue-ID: OOM-2087 Change-Id: Ibe1799e9de63476540288b84726260f712d12616 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/build_nexus_blob.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh
index 58f0f83f..0bf23edd 100755
--- a/build/build_nexus_blob.sh
+++ b/build/build_nexus_blob.sh
@@ -147,7 +147,7 @@ docker_login () {
for REGISTRY in $(sed -n '/\.[^/].*\//p' ${1} | sed -e 's/\/.*$//' | sort -u | grep -v ${DEFAULT_REGISTRY}) ${DOCKER_REGISTRY}; do
if ! grep -wq ${REGISTRY} ~/.docker/config.json; then
echo "Docker login to ${REGISTRY}"
- docker login -u "${NEXUS_USERNAME}" -p "${NEXUS_PASSWORD}" ${REGISTRY} > /dev/null
+ echo -n "${NEXUS_PASSWORD}" | docker login -u "${NEXUS_USERNAME}" --password-stdin ${REGISTRY} > /dev/null
fi
done
}