From cd080150d386d26dc425268658588194aa565e79 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 6 Oct 2020 19:57:08 +0100 Subject: [PATCH] fix: password in quotes --- .drone/drone-home.yml | 2 +- .drone/package.json | 2 +- .drone/scripts/login.sh | 2 +- .drone/yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index b1b8650..ae1b1df 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -30,7 +30,7 @@ steps: commands: - set -e - export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ - - sh .drone/scripts/initialise-images.sh $${REGISTRY} $${REGISTRY_PASSWORD} + - sh .drone/scripts/initialise-images.sh $${REGISTRY} "$${REGISTRY_PASSWORD}" volumes: - name: dockersock path: /var/run diff --git a/.drone/package.json b/.drone/package.json index 0f0cc55..ff93383 100644 --- a/.drone/package.json +++ b/.drone/package.json @@ -4,6 +4,6 @@ "build": "drone jsonnet --source drone-home.jsonnet --target drone-home.yml --stream" }, "dependencies": { - "@sigyl/jsonnet-drone": "^0.3.1" + "@sigyl/jsonnet-drone": "^0.4.0" } } diff --git a/.drone/scripts/login.sh b/.drone/scripts/login.sh index 730a4c8..cc1af90 100644 --- a/.drone/scripts/login.sh +++ b/.drone/scripts/login.sh @@ -1,7 +1,7 @@ n=0 while : do - docker login $1 --username client --password $2 \ + docker login $1 --username client --password "$2" \ && break # substitute your command here n=$((n+1)) if [ $n -ge 10 ]; then diff --git a/.drone/yarn.lock b/.drone/yarn.lock index f9b7ae3..903f335 100644 --- a/.drone/yarn.lock +++ b/.drone/yarn.lock @@ -12,10 +12,10 @@ resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone-environment/-/jsonnet-drone-environment-0.0.5.tgz#9ea85e08904777bd21a3e4b30b0b91461d0285ff" integrity sha512-xVGmdMO1pOyozAWUbJm6mzKBgsLPJ+1hWnGCK3AxPkr7kkDh18hu30+TLzlcQtqq76s5jUfvJUztezsGj/mIcw== -"@sigyl/jsonnet-drone@^0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone/-/jsonnet-drone-0.3.1.tgz#790a83f45556cc613f07fbc98ca760027fa936e7" - integrity sha512-FiSyunjR0Udc20I2gA6gkzX3sCB2dPq/ZODrXcm7ROQFKF2Wr4b+xhpovjEdnjKGy8G4d+rRcdN+Jyhp7WQLEg== +"@sigyl/jsonnet-drone@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone/-/jsonnet-drone-0.4.0.tgz#ebf7bc5e076d7252195fee7be2d1eafd24ee0435" + integrity sha512-96Adxqgo4SIU7skhiD0oPRproK4hy+Gvulym0p0bcSod5bv6b94BcYSfMyJye+sy6oRD0gosJY2uet1rgoB8UA== dependencies: "@sigyl/jsonnet-compose" "^0.0.2" "@sigyl/jsonnet-drone-environment" "0.0.5"