From 80e1254aa9409d771f8290c5c36fd8eb6e0235e6 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 22 Oct 2020 11:05:43 +0100 Subject: [PATCH] . --- .drone/drone-home.yml | 6 ++++++ .drone/login.sh | 7 ------- .drone/logout.sh | 3 --- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index b495691..c357c59 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -217,6 +217,8 @@ services: path: /var/run - name: ca path: /etc/docker/certs.d + - name: daemonjson + path: /etc/docker/daemon.json volumes: - name: dockersock @@ -224,6 +226,10 @@ volumes: - name: ca host: path: /etc/docker/certs.d +- name: daemonjson + host: + path: /etc/docker/daemon.json + trigger: event: diff --git a/.drone/login.sh b/.drone/login.sh index fca0a33..7b53806 100644 --- a/.drone/login.sh +++ b/.drone/login.sh @@ -1,8 +1 @@ -pwd -echo "~$USER" -ls ~/.docker -cat ~/.docker/config.json -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 4cb46fd..fca56b8 100644 --- a/.drone/logout.sh +++ b/.drone/logout.sh @@ -1,4 +1 @@ -if [ "$SCHEME" == "https" ] -then docker logout ${REGISTRY_DOMAIN}:${REGISTRY_PORT} -fi \ No newline at end of file