From bde0ce8e66ff8087b9e43db06c48636ea1a527d2 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Mon, 27 Feb 2023 17:42:28 +0100 Subject: [PATCH] ci: add docker config to enable pulls from private docker registry --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 200551a..80229ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,6 +36,8 @@ steps: - name: deploy image: registry.greenbaum.cloud/library/triton-docker environment: + DOCKER_CONFIG: + from_secret: docker_config TRITON_SSH_KEY: from_secret: triton_ssh_key TRITON_ACCOUNT: @@ -44,8 +46,9 @@ steps: TRITON_KEY_ID: 59:9f:5a:6f:c4:e2:3b:32:7f:13:1f:de:b7:59:80:85 PROJECT_NAME: miomspace commands: - - mkdir -p /home/node/.ssh + - mkdir -p /home/node/.ssh /home/node/.config/docker - echo -e "$TRITON_SSH_KEY" > /home/node/.ssh/id_rsa + - echo -e "$DOCKER_CONFIG" > /home/node/.config/docker/config.json - /usr/local/bin/docker-entrypoint.sh ./deploy.sh $DRONE_TAG trigger: