From a81a045a1fdf6b6c110a59f5bdd6fb9f1ab968b4 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 22 Oct 2020 10:28:10 +0100 Subject: [PATCH] . --- .drone/login.sh | 5 ++++- .drone/logout.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone/login.sh b/.drone/login.sh index 982ed2d..fefb2f5 100644 --- a/.drone/login.sh +++ b/.drone/login.sh @@ -1 +1,4 @@ -docker login ${REGISTRY_DOMAIN}:${REGISTRY_PORT} --username client --password "${REGISTRY_PASSWORD}" \ No newline at end of file +if ["$SCHEME" == "https"] +then + docker login ${REGISTRY_DOMAIN}:${REGISTRY_PORT} --username client --password "${REGISTRY_PASSWORD}" +fi \ No newline at end of file diff --git a/.drone/logout.sh b/.drone/logout.sh index 2337c7c..fdb31f6 100644 --- a/.drone/logout.sh +++ b/.drone/logout.sh @@ -1 +1,4 @@ -docker logout ${REGISTRY_DOMAIN}:${REGISTRY_PORT} \ No newline at end of file +if ["$SCHEME" == "https"] +then + docker logout ${REGISTRY_DOMAIN}:${REGISTRY_PORT} +fi \ No newline at end of file