From 6eda1d9772ae71e18007d1821c0ee737ab240bcb Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Fri, 23 Oct 2020 00:13:20 +0100 Subject: [PATCH] . --- .drone/build.sh | 4 ++-- .drone/drone-home.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone/build.sh b/.drone/build.sh index bc340b2..a9d3369 100644 --- a/.drone/build.sh +++ b/.drone/build.sh @@ -1,3 +1,3 @@ docker build guacamole-postgresql \ - -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${NAME}/guacamole-postgresql \ - --build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${NAME}/ + -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/guacamole-postgresql \ + --build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index c8038b6..72c2b65 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -223,6 +223,7 @@ steps: commands: - set -e - export NAME=guacamole + - export ROOT=stack - "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n" - sh .drone/build.sh - sh .drone/push.sh