diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 23fa5b7..a075497 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -30,14 +30,17 @@ steps: commands: - set -e - sleep 40 - - docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}" - - "sh .drone/lib/initialise-images.sh " - - docker logout $${LOCAL_DOCKER_REGISTRY} + - export REGISTRY=$${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ + - docker login $${REGISTRY} --username client --password "$${REGISTRY_PASSWORD}" + - sh .drone/lib/initialise-images.sh $${REGISTRY} + - docker logout $${REGISTRY} environment: - LOCAL_DOCKER_REGISTRY: - from_secret: local-docker-registry - LOCAL_REGISTRY_PASSWORD: - from_secret: local-registry-password + REGISTRY_DOMAIN: + from_secret: registry-domain + REGISTRY_PASSWORD: + from_secret: registry-password + REGISTRY_PORT: + from_secret: registry-port volumes: - name: dockersock path: /var/run