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}