Deal with unset docker login
This commit is contained in:
parent
a52d5c8ba6
commit
af2cad09b4
8 changed files with 91 additions and 5 deletions
|
@ -1,4 +1,8 @@
|
|||
MANDATORY-compose-file = DEPLOY_HOSTS DEPLOY_TYPE TAG DEPLOY_COMPOSE_FILE DEPLOY_COMPOSE_PROJECT
|
||||
MANDATORY-compose-file = DEPLOY_HOSTS DEPLOY_TYPE SSH_USER DEPLOY_COMPOSE_FILE DEPLOY_COMPOSE_PROJECT
|
||||
|
||||
ifndef DOCKER_LOGIN
|
||||
DOCKER_LOGIN = 0
|
||||
endif
|
||||
|
||||
pull-compose-file:
|
||||
@- echo "\n### pulling image(s)"
|
||||
|
@ -9,7 +13,10 @@ pull-compose-file:
|
|||
echo "\n#### perfom docker login with user $(DOCKER_USER) on $(DOCKER_REGISTRY)"; \
|
||||
ssh $(SSH_USER)@$(host) "docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) $(DOCKER_REGISTRY)"; \
|
||||
fi; \
|
||||
ssh $(SSH_USER)@$(host) "docker pull $(DOCKER_IMAGE)"; \
|
||||
if test -n "$(DOCKER_IMAGE)" ; \
|
||||
then \
|
||||
ssh $(SSH_USER)@$(host) "docker pull $(DOCKER_IMAGE)"; \
|
||||
fi; \
|
||||
)
|
||||
|
||||
start-compose-file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue