From a20c5a2965e1459f699b10097c59638257a073d6 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 6 Oct 2020 19:58:53 +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 138e540..4bab7b0 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}" environment: REGISTRY_DOMAIN: from_secret: registry-domain 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 8f7c85e..095b434 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)) diff --git a/.drone/yarn.lock b/.drone/yarn.lock index 75560d6..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.0": - version "0.3.0" - resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone/-/jsonnet-drone-0.3.0.tgz#19a8ed693a040fee33d25f2ca0eec5d88b741a4a" - integrity sha512-c60nAupJ1eRQABKBwO8L9bHohkw6qlEWhPA9IthhHSCOFOzhkx/0N32aFdlSh6400nrieYZMYtQJ/28R9I3Wgg== +"@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"