From 732b08b12abef05c0633ad109028a84f24e32235 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Mon, 27 Jun 2022 02:06:11 +0500 Subject: [PATCH] Move registry address into Drone configuration. --- .drone.yml | 1 + mirror.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index ec94799..cf2ef95 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,6 +38,7 @@ steps: pull: if-not-exists environment: DOCKER_HOST: tcp://docker:2375 + REGISTRY: code.pztrn.name REGISTRY_USER: drone REGISTRY_PASSWORD: from_secret: drone_secret diff --git a/mirror.sh b/mirror.sh index 75f15c1..0b384d0 100755 --- a/mirror.sh +++ b/mirror.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash # The Docker Image Mirror script. - WHAT_TO_MIRROR=() -DESTINATION_REGISTRY=code.pztrn.name +DESTINATION_REGISTRY=${REGISTRY} DESTINATION_PROJECT=${DESTINATION_REGISTRY}/containers/mirror USER=${REGISTRY_USER} PASSWORD=${REGISTRY_PASSWORD}